mem: Add Units to mem stats
[gem5.git] / src / mem / cache / tags / fa_lru.cc
index e61a280174d69e5b46a58603b930537da1848269..e14da13237f1783aaed90b43355b31bf26007f37 100644 (file)
@@ -299,9 +299,10 @@ FALRU::CacheTracking::CacheTracking(unsigned min_size, unsigned max_size,
                        floorLog2(max_size) - floorLog2(min_size) : 0),
       inAllCachesMask(mask(numTrackedCaches)),
       boundaries(numTrackedCaches),
-      ADD_STAT(hits, "The number of hits in each cache size."),
-      ADD_STAT(misses, "The number of misses in each cache size."),
-      ADD_STAT(accesses, "The number of accesses to the FA LRU cache.")
+      ADD_STAT(hits, UNIT_COUNT, "The number of hits in each cache size."),
+      ADD_STAT(misses, UNIT_COUNT, "The number of misses in each cache size."),
+      ADD_STAT(accesses, UNIT_COUNT,
+               "The number of accesses to the FA LRU cache.")
 {
     fatal_if(numTrackedCaches > sizeof(CachesMask) * 8,
              "Not enough bits (%s) in type CachesMask type to keep "