diff options
author | Steve Reinhardt <stever@gmail.com> | 2008-07-15 14:38:51 -0400 |
---|---|---|
committer | Steve Reinhardt <stever@gmail.com> | 2008-07-15 14:38:51 -0400 |
commit | 8e7ddce28493c93564aeb20f1856fbe6bff0ece4 (patch) | |
tree | 291db85191f91ee67d9cd7b8b9c61d11f33bae3d /src/cpu/simple | |
parent | 6262e0d9095215effc8d73297f3eedfddc1c2796 (diff) | |
download | gem5-8e7ddce28493c93564aeb20f1856fbe6bff0ece4.tar.xz |
Use ReadResp instead of LoadLockedResp for LoadLockedReq responses.
Diffstat (limited to 'src/cpu/simple')
-rw-r--r-- | src/cpu/simple/timing.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cpu/simple/timing.cc b/src/cpu/simple/timing.cc index b86d4b2d7..4451dfe81 100644 --- a/src/cpu/simple/timing.cc +++ b/src/cpu/simple/timing.cc @@ -730,7 +730,9 @@ TimingSimpleCPU::completeDataAccess(PacketPtr pkt) traceData = NULL; } - if (pkt->isRead() && pkt->isLocked()) { + // the locked flag may be cleared on the response packet, so check + // pkt->req and not pkt to see if it was a load-locked + if (pkt->isRead() && pkt->req->isLocked()) { TheISA::handleLockedRead(thread, pkt->req); } |