summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeoffrey Blake <blakeg@umich.edu>2008-01-06 00:19:45 -0500
committerGeoffrey Blake <blakeg@umich.edu>2008-01-06 00:19:45 -0500
commitf9c54d5a4b31b19809d75390a37c80cf6a15b428 (patch)
tree726da56cc144d06bc588d05bfb1479df03aabec8 /src
parentd4cca11bdbea1dd9d5d329df8edef1278c873ec4 (diff)
downloadgem5-f9c54d5a4b31b19809d75390a37c80cf6a15b428.tar.xz
Temporary fix for ll/sc bug see flyspray task for more info:
http://www.m5sim.org/flyspray/task/197 Signed-off by: Ali Saidi <saidi@eecs.umich.edu> --HG-- extra : convert_revision : cdeece7e3163de9abf2c6c7435f1bc93570fab81
Diffstat (limited to 'src')
-rw-r--r--src/mem/cache/cache_impl.hh2
1 files changed, 1 insertions, 1 deletions
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<TagStore>::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()) {