summaryrefslogtreecommitdiff
path: root/src/mem/cache/cache_impl.hh
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2007-02-06 15:54:44 -0500
committerKevin Lim <ktlim@umich.edu>2007-02-06 15:54:44 -0500
commit310d8f0992637d69e270cac727ba0ff968cdb6ea (patch)
tree1ddc995fba06b698520b7cdab0caa3ab15e3e067 /src/mem/cache/cache_impl.hh
parent17cbfe55fdd80ccd4c9c33ade3b636ba793def56 (diff)
downloadgem5-310d8f0992637d69e270cac727ba0ff968cdb6ea.tar.xz
Fix for LL/SC that Ron sent me.
--HG-- extra : convert_revision : b3510a23d8a9eb466939f38491a109c3a65a7363
Diffstat (limited to 'src/mem/cache/cache_impl.hh')
-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 b8c896498..10c244b8e 100644
--- a/src/mem/cache/cache_impl.hh
+++ b/src/mem/cache/cache_impl.hh
@@ -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),