cache: set dirty bit on swaps (oops!)
This commit is contained in:
parent
61ff48a1f8
commit
758bfe4eb5
1 changed files with 3 additions and 1 deletions
4
src/mem/cache/cache_impl.hh
vendored
4
src/mem/cache/cache_impl.hh
vendored
|
@ -149,8 +149,10 @@ Cache<TagStore>::cmpAndSwap(BlkType *blk, PacketPtr pkt)
|
|||
panic("Invalid size for conditional read/write\n");
|
||||
}
|
||||
|
||||
if (overwrite_mem)
|
||||
if (overwrite_mem) {
|
||||
std::memcpy(blk_data, &overwrite_val, pkt->getSize());
|
||||
blk->status |= BlkDirty;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue