From: Kevin Lim Date: Tue, 6 Feb 2007 20:54:44 +0000 (-0500) Subject: Fix for LL/SC that Ron sent me. X-Git-Tag: m5_2.0_beta3~74^2~9 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=310d8f0992637d69e270cac727ba0ff968cdb6ea;p=gem5.git Fix for LL/SC that Ron sent me. --HG-- extra : convert_revision : b3510a23d8a9eb466939f38491a109c3a65a7363 --- diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh index b8c896498..10c244b8e 100644 --- a/src/mem/cache/cache_impl.hh +++ b/src/mem/cache/cache_impl.hh @@ -342,8 +342,8 @@ Cache::handleFill(BlkType *blk, MSHR * mshr, target->getPtr(), target->getSize()); } } else { - if (pkt->req->isLocked()) { - blk->trackLoadLocked(pkt->req); + if (target->req->isLocked()) { + blk->trackLoadLocked(target->req); } std::memcpy(target->getPtr(), blk->data + target->getOffset(blkSize),