diff options
author | Stephan Diestelhorst <stephan.diestelhorst@arm.com> | 2016-06-06 17:16:43 +0100 |
---|---|---|
committer | Stephan Diestelhorst <stephan.diestelhorst@arm.com> | 2016-06-06 17:16:43 +0100 |
commit | 589033c94c0381fe4e67cebe08352b6e1fbcde2e (patch) | |
tree | 78e4bf3ebcb798c256e6b3248854eff42bc67377 /src/sim | |
parent | 672c06a01d1931e7b6fc650ada20da54a9fc29d1 (diff) | |
download | gem5-589033c94c0381fe4e67cebe08352b6e1fbcde2e.tar.xz |
sim: Call regStats of base-class as well
We want to extend the stats of objects hierarchically and thus it is necessary
to register the statistics of the base-class(es), as well. For now, these are
empty, but generic stats will be added there.
Patch originally provided by Akash Bagdia at ARM Ltd.
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/process.cc | 2 | ||||
-rw-r--r-- | src/sim/system.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/sim/process.cc b/src/sim/process.cc index d0dd3d92b..7c64dad22 100644 --- a/src/sim/process.cc +++ b/src/sim/process.cc @@ -191,6 +191,8 @@ Process::Process(ProcessParams * params) void Process::regStats() { + SimObject::regStats(); + using namespace Stats; num_syscalls diff --git a/src/sim/system.cc b/src/sim/system.cc index 3f7ea9286..9f240c9bc 100644 --- a/src/sim/system.cc +++ b/src/sim/system.cc @@ -393,6 +393,8 @@ System::unserialize(CheckpointIn &cp) void System::regStats() { + MemObject::regStats(); + for (uint32_t j = 0; j < numWorkIds ; j++) { workItemStats[j] = new Stats::Histogram(); stringstream namestr; |