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/arch/arm/table_walker.cc | 2 ++ src/arch/arm/tlb.cc | 1 + 2 files changed, 3 insertions(+) (limited to 'src/arch') diff --git a/src/arch/arm/table_walker.cc b/src/arch/arm/table_walker.cc index 82bec2547..91b13e251 100644 --- a/src/arch/arm/table_walker.cc +++ b/src/arch/arm/table_walker.cc @@ -2122,6 +2122,8 @@ TableWalker::pageSizeNtoStatBin(uint8_t N) void TableWalker::regStats() { + ClockedObject::regStats(); + statWalks .name(name() + ".walks") .desc("Table walker walks requested") diff --git a/src/arch/arm/tlb.cc b/src/arch/arm/tlb.cc index db132e2d6..f4d51546c 100644 --- a/src/arch/arm/tlb.cc +++ b/src/arch/arm/tlb.cc @@ -417,6 +417,7 @@ TLB::unserialize(CheckpointIn &cp) void TLB::regStats() { + BaseTLB::regStats(); instHits .name(name() + ".inst_hits") .desc("ITB inst hits") -- cgit v1.2.3