diff options
Diffstat (limited to 'src/mem/cache/tags/base_set_assoc.hh')
-rw-r--r-- | src/mem/cache/tags/base_set_assoc.hh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mem/cache/tags/base_set_assoc.hh b/src/mem/cache/tags/base_set_assoc.hh index d19a00ed9..b41c3096c 100644 --- a/src/mem/cache/tags/base_set_assoc.hh +++ b/src/mem/cache/tags/base_set_assoc.hh @@ -122,8 +122,8 @@ class BaseSetAssoc : public BaseTags virtual ~BaseSetAssoc() {}; /** - * This function updates the tags when a block is invalidated but does - * not invalidate the block itself. It also updates the replacement data. + * This function updates the tags when a block is invalidated. It also + * updates the replacement data. * * @param blk The block to invalidate. */ @@ -252,6 +252,9 @@ class BaseSetAssoc : public BaseTags // Insert block BaseTags::insertBlock(pkt, blk); + // Increment tag counter + tagsInUse++; + // Update replacement policy replacementPolicy->reset(blk->replacementData); } |