summaryrefslogtreecommitdiff
path: root/sim/process.cc
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2006-02-21 13:39:01 -0500
committerRon Dreslinski <rdreslin@umich.edu>2006-02-21 13:39:01 -0500
commit4bd11c10a5b9b5b8ef5cdf75cb9496da6a55c292 (patch)
tree7bc4f8efcc35294c5026ba0eb0fa4fc53500e0cc /sim/process.cc
parent944646124e3d1222601294f62c78754c6705a2d6 (diff)
downloadgem5-4bd11c10a5b9b5b8ef5cdf75cb9496da6a55c292.tar.xz
Add blocksize functions to physical memory. Fix the port we were using in the process loader.
mem/physical.cc: Implement the blockSize function, return VMPageSize for the physical memory mem/port.hh: Add a function to get a pointer to a peer, needed for initVirtMem to work in the loader. sim/process.cc: The way the translating port is setup we don't want the memory port, we want the peer port associated with that memory. We may need to revisit this. --HG-- extra : convert_revision : 46a51d448d1683db7bd5afe64adbe167a5743060
Diffstat (limited to 'sim/process.cc')
-rw-r--r--sim/process.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/process.cc b/sim/process.cc
index 013ac0890..2335d5cc8 100644
--- a/sim/process.cc
+++ b/sim/process.cc
@@ -154,7 +154,7 @@ Process::startup()
if (execContexts.empty())
fatal("Process %s is not associated with any CPUs!\n", name());
- initVirtMem = new TranslatingPort(system->physmem->getPort("any"), pTable);
+ initVirtMem = new TranslatingPort((system->physmem->getPort("any"))->getPeer(), pTable);
// first exec context for this process... initialize & enable
ExecContext *xc = execContexts[0];