From e00c1246b804f82c88c56d60610d28c6f883011e Mon Sep 17 00:00:00 2001 From: Suraj Shirvankar Date: Mon, 13 May 2024 20:53:49 +0200 Subject: [PATCH] Add D1 Hit/Miss ratio --- core/DCache.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/DCache.hpp b/core/DCache.hpp index 383c74ba..0078ff99 100644 --- a/core/DCache.hpp +++ b/core/DCache.hpp @@ -146,6 +146,10 @@ namespace olympia "Number of DL1 cache misses", sparta::Counter::COUNT_NORMAL}; + sparta::StatisticDef dl1_hit_miss_ratio_{getStatisticSet(), "dl1_hit_miss_ratio", + "DL1 HIT/MISS Ratio", getStatisticSet(), + "dl1_cache_hits/dl1_cache_misses"}; + sparta::Buffer mshr_file_; MSHREntryInfoAllocator & mshr_entry_allocator_; void allocateMSHREntry_(const MemoryAccessInfoPtr & mem_access_info_ptr);