cache: set dirty bit on swaps (oops!)

This commit is contained in:
Steve Reinhardt 2009-03-11 23:05:26 -07:00
parent 61ff48a1f8
commit 758bfe4eb5

View file

@ -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;
}
}