mem: Add missing clean eviction on uncacheable access
This patch adds a missing clean eviction, occuring when an uncacheable access flushes and invalidates an existing block.
This commit is contained in:
parent
540e59fd70
commit
6fac40ceb0
1 changed files with 2 additions and 0 deletions
2
src/mem/cache/cache_impl.hh
vendored
2
src/mem/cache/cache_impl.hh
vendored
|
@ -320,6 +320,8 @@ Cache::access(PacketPtr pkt, CacheBlk *&blk, Cycles &lat,
|
|||
if (old_blk && old_blk->isValid()) {
|
||||
if (old_blk->isDirty())
|
||||
writebacks.push_back(writebackBlk(old_blk));
|
||||
else
|
||||
writebacks.push_back(cleanEvictBlk(old_blk));
|
||||
tags->invalidate(old_blk);
|
||||
old_blk->invalidate();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue