summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2007-03-28 14:38:11 -0500
committerRon Dreslinski <rdreslin@umich.edu>2007-03-28 14:38:11 -0500
commit8a674bed5ca845294412f4736f5ac38b42864801 (patch)
tree638723a9d339cfbaef853b3d5c885cf1324b7a78 /src/mem
parent55614caecca476a12ef711b8b6e459fee19028b9 (diff)
downloadgem5-8a674bed5ca845294412f4736f5ac38b42864801.tar.xz
Call compare and Swap on the target, not the response.
--HG-- extra : convert_revision : 522805fe2c9abaa5ba0d9262ad98f841d90f6452
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/cache/cache_impl.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh
index ca965859e..ec0ef1be4 100644
--- a/src/mem/cache/cache_impl.hh
+++ b/src/mem/cache/cache_impl.hh
@@ -299,7 +299,7 @@ Cache<TagStore,Coherence>::handleFill(BlkType *blk, PacketPtr &pkt,
target->getPtr<uint8_t>(), target->getSize());
}
} else if (target->isReadWrite()) {
- cmpAndSwap(blk, pkt);
+ cmpAndSwap(blk, target);
} else {
if (pkt->req->isLocked()) {
blk->trackLoadLocked(pkt->req);
@@ -390,7 +390,7 @@ Cache<TagStore,Coherence>::handleFill(BlkType *blk, MSHR * mshr,
target->getPtr<uint8_t>(), target->getSize());
}
} else if (target->isReadWrite()) {
- cmpAndSwap(blk, pkt);
+ cmpAndSwap(blk, target);
} else {
if (target->req->isLocked()) {
blk->trackLoadLocked(target->req);