summaryrefslogtreecommitdiff
path: root/src/mem/cache/tags
diff options
context:
space:
mode:
authorStephan Diestelhorst <stephan.diestelhorst@arm.com>2016-06-06 17:16:43 +0100
committerStephan Diestelhorst <stephan.diestelhorst@arm.com>2016-06-06 17:16:43 +0100
commit589033c94c0381fe4e67cebe08352b6e1fbcde2e (patch)
tree78e4bf3ebcb798c256e6b3248854eff42bc67377 /src/mem/cache/tags
parent672c06a01d1931e7b6fc650ada20da54a9fc29d1 (diff)
downloadgem5-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/mem/cache/tags')
-rw-r--r--src/mem/cache/tags/base.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mem/cache/tags/base.cc b/src/mem/cache/tags/base.cc
index c413fbc5d..6a926c0d8 100644
--- a/src/mem/cache/tags/base.cc
+++ b/src/mem/cache/tags/base.cc
@@ -71,7 +71,10 @@ BaseTags::setCache(BaseCache *_cache)
void
BaseTags::regStats()
{
+ ClockedObject::regStats();
+
using namespace Stats;
+
replacements
.init(maxThreadsPerCPU)
.name(name() + ".replacements")