From: Geoffrey Blake Date: Sun, 6 Jan 2008 05:19:45 +0000 (-0500) Subject: Temporary fix for ll/sc bug see flyspray task for more info: X-Git-Tag: m5_2.0_beta5~36 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9c54d5a4b31b19809d75390a37c80cf6a15b428;p=gem5.git 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 --- 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()) {