From f9c54d5a4b31b19809d75390a37c80cf6a15b428 Mon Sep 17 00:00:00 2001 From: Geoffrey Blake Date: Sun, 6 Jan 2008 00:19:45 -0500 Subject: [PATCH] Temporary fix for ll/sc bug see flyspray task for more info: http://www.m5sim.org/flyspray/task/197 Signed-off by: Ali Saidi --HG-- extra : convert_revision : cdeece7e3163de9abf2c6c7435f1bc93570fab81 --- src/mem/cache/cache_impl.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh index ed65fbabb..7a06f9fc7 100644 --- a/src/mem/cache/cache_impl.hh +++ b/src/mem/cache/cache_impl.hh @@ -171,8 +171,8 @@ Cache::satisfyCpuSideRequest(PacketPtr pkt, BlkType *blk) if (pkt->cmd == MemCmd::SwapReq) { cmpAndSwap(blk, pkt); } else if (pkt->isWrite()) { + blk->status |= BlkDirty; if (blk->checkWrite(pkt)) { - blk->status |= BlkDirty; pkt->writeDataToBlock(blk->data, blkSize); } } else if (pkt->isRead()) { -- 2.30.2