From 4bd11c10a5b9b5b8ef5cdf75cb9496da6a55c292 Mon Sep 17 00:00:00 2001 From: Ron Dreslinski Date: Tue, 21 Feb 2006 13:39:01 -0500 Subject: 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 --- sim/process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim') 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]; -- cgit v1.2.3