Policies like the LRU need to be notified when a block is invalidated,
the helper function does this along with invalidating the block.
Change-Id: I3ed59cf07938caa7f394ee6054b0af9e00b267ea
Reviewed-by: Andreas Hansson <andreas.hansson@arm.com>
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
writebacks.push_back(writebackBlk(old_blk));
else
writebacks.push_back(cleanEvictBlk(old_blk));
- tags->invalidate(old_blk);
- old_blk->invalidate();
+ invalidateBlock(old_blk);
}
blk = nullptr;
tempBlockWriteback = (blk->isDirty() || writebackClean) ?
writebackBlk(blk) : cleanEvictBlk(blk);
- blk->invalidate();
+ invalidateBlock(blk);
}
if (pkt->needsResponse()) {
else
allocateWriteBuffer(wcPkt, forward_time);
}
- blk->invalidate();
+ invalidateBlock(blk);
}
DPRINTF(CacheVerbose, "%s: Leaving with %s\n", __func__, pkt->print());
if (blk.isValid()) {
assert(!blk.isDirty());
- tags->invalidate(&blk);
- blk.invalidate();
+ invalidateBlock(&blk);
}
return true;