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/mem/cache/prefetch/base.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mem/cache/prefetch') diff --git a/src/mem/cache/prefetch/base.cc b/src/mem/cache/prefetch/base.cc index 0b296144c..3d22dcce6 100644 --- a/src/mem/cache/prefetch/base.cc +++ b/src/mem/cache/prefetch/base.cc @@ -74,6 +74,8 @@ BasePrefetcher::setCache(BaseCache *_cache) void BasePrefetcher::regStats() { + ClockedObject::regStats(); + pfIssued .name(name() + ".num_hwpf_issued") .desc("number of hwpf issued") -- cgit v1.2.3