summaryrefslogtreecommitdiff
path: root/src/mem/cache/tags/sector_tags.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/cache/tags/sector_tags.hh')
-rw-r--r--src/mem/cache/tags/sector_tags.hh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mem/cache/tags/sector_tags.hh b/src/mem/cache/tags/sector_tags.hh
index 905a87aaf..3ad59e39d 100644
--- a/src/mem/cache/tags/sector_tags.hh
+++ b/src/mem/cache/tags/sector_tags.hh
@@ -40,6 +40,7 @@
#include <string>
#include <vector>
+#include "base/statistics.hh"
#include "mem/cache/tags/base.hh"
#include "mem/cache/tags/sector_blk.hh"
#include "mem/packet.hh"
@@ -88,6 +89,18 @@ class SectorTags : public BaseTags
/** Mask out all bits that aren't part of the sector tag. */
const unsigned sectorMask;
+ struct SectorTagsStats : public Stats::Group
+ {
+ const SectorTags& tags;
+
+ SectorTagsStats(BaseTagStats &base_group, SectorTags& _tags);
+
+ void regStats() override;
+
+ /** Number of sub-blocks evicted due to a replacement. */
+ Stats::Vector evictionsReplacement;
+ } sectorStats;
+
public:
/** Convenience typedef. */
typedef SectorTagsParams Params;