From b84f6222261998d1a34f6fd184f4859aaa67d0d1 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Mon, 18 Feb 2019 21:00:54 +0100 Subject: Clear LFU statistic for the kicked out cache-line. Signed-off-by: Pavel Pisa --- qtmips_machine/cache.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qtmips_machine/cache.cpp b/qtmips_machine/cache.cpp index 231aa81..f32e0e5 100644 --- a/qtmips_machine/cache.cpp +++ b/qtmips_machine/cache.cpp @@ -384,6 +384,7 @@ void Cache::kick(unsigned associat_indx, unsigned row) const { break; } case MachineConfigCache::RP_LFU: + replc.lfu[row][associat_indx] = 0; break; default: break; -- cgit v1.2.3