diff options
Diffstat (limited to 'src/mem/cache/tags/lru.cc')
-rw-r--r-- | src/mem/cache/tags/lru.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mem/cache/tags/lru.cc b/src/mem/cache/tags/lru.cc index babcedc89..c73f557b9 100644 --- a/src/mem/cache/tags/lru.cc +++ b/src/mem/cache/tags/lru.cc @@ -213,6 +213,10 @@ LRU::invalidateBlk(BlkType *blk) blk->status = 0; blk->isTouched = false; blk->clearLoadLocks(); + + // should be evicted before valid blocks + unsigned set = blk->set; + sets[set].moveToTail(blk); } } |