Change everything to use the cached virtPort rather than created their own each time.
authorAli Saidi <saidi@eecs.umich.edu>
Tue, 1 Jul 2008 14:24:19 +0000 (10:24 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Tue, 1 Jul 2008 14:24:19 +0000 (10:24 -0400)
commitc5fbbf376a6be4bb3ad7ddc64841450541c16db6
treeb7038e333bdc574d1338de4d136aeeb80ce27819
parent50e3e50e1ac592b357a47eecdc3c99a528172870
Change everything to use the cached virtPort rather than created their own each time.
This appears to work, but I don't want to commit it until it gets tested a lot more.
I haven't deleted the functionality in this patch that will come later, but one question
is how to enforce encourage objects that call getVirtPort() to not cache the virtual port
since if the CPU changes out from under them it will be worse than useless. Perhaps a null
function like delVirtPort() is still useful in that case.
src/arch/alpha/utility.cc
src/arch/mips/utility.cc
src/arch/sparc/utility.cc
src/base/remote_gdb.cc
src/mem/vport.cc
src/sim/vptr.hh