From: Ron Dreslinski Date: Wed, 28 Mar 2007 19:38:11 +0000 (-0500) Subject: Call compare and Swap on the target, not the response. X-Git-Tag: m5_2.0_beta3~67 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a674bed5ca845294412f4736f5ac38b42864801;p=gem5.git Call compare and Swap on the target, not the response. --HG-- extra : convert_revision : 522805fe2c9abaa5ba0d9262ad98f841d90f6452 --- 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::handleFill(BlkType *blk, PacketPtr &pkt, target->getPtr(), 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::handleFill(BlkType *blk, MSHR * mshr, target->getPtr(), target->getSize()); } } else if (target->isReadWrite()) { - cmpAndSwap(blk, pkt); + cmpAndSwap(blk, target); } else { if (target->req->isLocked()) { blk->trackLoadLocked(target->req);