Fix for LL/SC that Ron sent me.
authorKevin Lim <ktlim@umich.edu>
Tue, 6 Feb 2007 20:54:44 +0000 (15:54 -0500)
committerKevin Lim <ktlim@umich.edu>
Tue, 6 Feb 2007 20:54:44 +0000 (15:54 -0500)
--HG--
extra : convert_revision : b3510a23d8a9eb466939f38491a109c3a65a7363

src/mem/cache/cache_impl.hh

index b8c896498b8128f54e8108772b34740e69590345..10c244b8e8fbc636de718de162aa451bfc10bf99 100644 (file)
@@ -342,8 +342,8 @@ Cache<TagStore,Coherence>::handleFill(BlkType *blk, MSHR * mshr,
                            target->getPtr<uint8_t>(), target->getSize());
                 }
             } else {
-                if (pkt->req->isLocked()) {
-                    blk->trackLoadLocked(pkt->req);
+                if (target->req->isLocked()) {
+                    blk->trackLoadLocked(target->req);
                 }
                 std::memcpy(target->getPtr<uint8_t>(),
                        blk->data + target->getOffset(blkSize),