diff options
Diffstat (limited to 'src/mem/cache/tags/fa_lru.cc')
-rw-r--r-- | src/mem/cache/tags/fa_lru.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mem/cache/tags/fa_lru.cc b/src/mem/cache/tags/fa_lru.cc index a6e1b3be1..8eab62845 100644 --- a/src/mem/cache/tags/fa_lru.cc +++ b/src/mem/cache/tags/fa_lru.cc @@ -193,9 +193,15 @@ FALRU::findBlockBySetAndWay(int set, int way) const } CacheBlk* -FALRU::findVictim(Addr addr) +FALRU::findVictim(Addr addr, std::vector<CacheBlk*>& evict_blks) const { - return tail; + // The victim is always stored on the tail for the FALRU + FALRUBlk* victim = tail; + + // There is only one eviction for this replacement + evict_blks.push_back(victim); + + return victim; } void |