From 14539ccae19098a26a7048f475f3ffd44b711f5d Mon Sep 17 00:00:00 2001 From: Dam Sunwoo Date: Tue, 5 Jun 2012 01:23:11 -0400 Subject: Mem: add per-master stats to physmem Added per-master stats (similar to cache stats) to physmem. --- src/sim/system.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sim/system.cc') diff --git a/src/sim/system.cc b/src/sim/system.cc index 906f7947f..67fb7480a 100644 --- a/src/sim/system.cc +++ b/src/sim/system.cc @@ -145,6 +145,9 @@ System::System(Params *p) // increment the number of running systms numSystemsRunning++; + // Set back pointers to the system in all memories + for (int x = 0; x < params()->memories.size(); x++) + params()->memories[x]->system(this); } System::~System() -- cgit v1.2.3