mem: Add Units to mem stats
[gem5.git] / src / mem / cache / tags / sector_tags.cc
index ff2f4a415f47cf15e05ca000edd3e5d647be0667..d4ba10d63a4b05c4a81d7caca8dd69ba5a7866fd 100644 (file)
@@ -338,8 +338,8 @@ SectorTags::regenerateBlkAddr(const CacheBlk* blk) const
 SectorTags::SectorTagsStats::SectorTagsStats(BaseTagStats &base_group,
     SectorTags& _tags)
   : Stats::Group(&base_group), tags(_tags),
-    evictionsReplacement(this, "evictions_replacement",
-        "Number of blocks evicted due to a replacement")
+    ADD_STAT(evictionsReplacement, UNIT_COUNT,
+             "Number of blocks evicted due to a replacement")
 {
 }