diff options
Diffstat (limited to 'src/mem/cache/tags/fa_lru.cc')
-rw-r--r-- | src/mem/cache/tags/fa_lru.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mem/cache/tags/fa_lru.cc b/src/mem/cache/tags/fa_lru.cc index 8eab62845..b5950f6cf 100644 --- a/src/mem/cache/tags/fa_lru.cc +++ b/src/mem/cache/tags/fa_lru.cc @@ -122,6 +122,9 @@ FALRU::invalidate(CacheBlk *blk) { BaseTags::invalidate(blk); + // Decrease the number of tags in use + tagsInUse--; + // Move the block to the tail to make it the next victim moveToTail((FALRUBlk*)blk); @@ -169,7 +172,6 @@ FALRU::accessBlock(Addr addr, bool is_secure, Cycles &lat, return blk; } - CacheBlk* FALRU::findBlock(Addr addr, bool is_secure) const { @@ -215,6 +217,9 @@ FALRU::insertBlock(PacketPtr pkt, CacheBlk *blk) // Do common block insertion functionality BaseTags::insertBlock(pkt, blk); + // Increment tag counter + tagsInUse++; + // New block is the MRU moveToHead(falruBlk); |