summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
authorDam Sunwoo <dam.sunwoo@arm.com>2012-06-05 01:23:11 -0400
committerDam Sunwoo <dam.sunwoo@arm.com>2012-06-05 01:23:11 -0400
commit14539ccae19098a26a7048f475f3ffd44b711f5d (patch)
treece1f163bc99546e2ad0d211b6f42bab994ecb358 /src/sim
parenteced845a5ebd77ebf413793fe8afdab54262c15f (diff)
downloadgem5-14539ccae19098a26a7048f475f3ffd44b711f5d.tar.xz
Mem: add per-master stats to physmem
Added per-master stats (similar to cache stats) to physmem.
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/system.cc3
1 files changed, 3 insertions, 0 deletions
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()