summaryrefslogtreecommitdiff
path: root/src/mem/cache
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/cache')
-rw-r--r--src/mem/cache/base.cc2
-rw-r--r--src/mem/cache/prefetch/base.cc2
-rw-r--r--src/mem/cache/tags/base.cc3
3 files changed, 7 insertions, 0 deletions
diff --git a/src/mem/cache/base.cc b/src/mem/cache/base.cc
index b6b3b1481..814159fc9 100644
--- a/src/mem/cache/base.cc
+++ b/src/mem/cache/base.cc
@@ -176,6 +176,8 @@ BaseCache::inRange(Addr addr) const
void
BaseCache::regStats()
{
+ MemObject::regStats();
+
using namespace Stats;
// Hit statistics
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")
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")