aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-18 21:00:54 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-18 21:00:54 +0100
commitb84f6222261998d1a34f6fd184f4859aaa67d0d1 (patch)
treebd170584891aae4db2cdafac5e1d19e17fb13c79
parent5aa6104c192995f2b1762579fe31f9241ce94c42 (diff)
downloadqtmips-b84f6222261998d1a34f6fd184f4859aaa67d0d1.tar.gz
qtmips-b84f6222261998d1a34f6fd184f4859aaa67d0d1.tar.bz2
qtmips-b84f6222261998d1a34f6fd184f4859aaa67d0d1.zip
Clear LFU statistic for the kicked out cache-line.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
-rw-r--r--qtmips_machine/cache.cpp1
1 files changed, 1 insertions, 0 deletions
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;