From 589033c94c0381fe4e67cebe08352b6e1fbcde2e Mon Sep 17 00:00:00 2001 From: Stephan Diestelhorst Date: Mon, 6 Jun 2016 17:16:43 +0100 Subject: 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. --- src/cpu/base.cc | 2 ++ src/cpu/testers/traffic_gen/traffic_gen.cc | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/cpu') diff --git a/src/cpu/base.cc b/src/cpu/base.cc index 624843f42..fbd8af99a 100644 --- a/src/cpu/base.cc +++ b/src/cpu/base.cc @@ -397,6 +397,8 @@ BaseCPU::probeInstCommit(const StaticInstPtr &inst) void BaseCPU::regStats() { + MemObject::regStats(); + using namespace Stats; numCycles diff --git a/src/cpu/testers/traffic_gen/traffic_gen.cc b/src/cpu/testers/traffic_gen/traffic_gen.cc index fbb26baa8..af1976784 100644 --- a/src/cpu/testers/traffic_gen/traffic_gen.cc +++ b/src/cpu/testers/traffic_gen/traffic_gen.cc @@ -526,6 +526,8 @@ TrafficGen::noProgress() void TrafficGen::regStats() { + ClockedObject::regStats(); + // Initialise all the stats using namespace Stats; -- cgit v1.2.3