diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-18 21:00:54 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-18 21:00:54 +0100 |
commit | b84f6222261998d1a34f6fd184f4859aaa67d0d1 (patch) | |
tree | bd170584891aae4db2cdafac5e1d19e17fb13c79 /qtmips_machine | |
parent | 5aa6104c192995f2b1762579fe31f9241ce94c42 (diff) | |
download | qtmips-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>
Diffstat (limited to 'qtmips_machine')
-rw-r--r-- | qtmips_machine/cache.cpp | 1 |
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; |