mem: Add unused prefetch counter in caches
Added stat to the cache to account for HardPF'ed blocks that are evicted before being referenced (over-prefetching).
This commit is contained in:
3
src/mem/cache/cache.cc
vendored
3
src/mem/cache/cache.cc
vendored
@@ -1709,6 +1709,9 @@ Cache::allocateBlock(Addr addr, bool is_secure, PacketList &writebacks)
|
||||
addr, is_secure ? "s" : "ns",
|
||||
blk->isDirty() ? "writeback" : "clean");
|
||||
|
||||
if (blk->wasPrefetched()) {
|
||||
unusedPrefetches++;
|
||||
}
|
||||
// Will send up Writeback/CleanEvict snoops via isCachedAbove
|
||||
// when pushing this writeback list into the write buffer.
|
||||
if (blk->isDirty() || writebackClean) {
|
||||
|
||||
Reference in New Issue
Block a user