Fix a couple LL/SC bugs that only affected timing mode.
src/cpu/simple/timing.cc:
Fix swap/stq_c command bug.
src/mem/packet.cc:
Fix incorrect LoadLockedReq command response field.
--HG--
extra : convert_revision : 7a4523be900bc2c9b1bdf2d372ce55f89ae58ae5
This commit is contained in:
@@ -370,7 +370,7 @@ TimingSimpleCPU::write(T data, Addr addr, unsigned flags, uint64_t *res)
|
||||
}
|
||||
|
||||
if (do_access) {
|
||||
dcache_pkt = new Packet(req, MemCmd::WriteReq, Packet::Broadcast);
|
||||
dcache_pkt = new Packet(req, cmd, Packet::Broadcast);
|
||||
dcache_pkt->allocate();
|
||||
dcache_pkt->set(data);
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ MemCmd::commandInfo[] =
|
||||
InvalidCmd, "ReadExResp" },
|
||||
/* LoadLockedReq */
|
||||
{ SET4(IsRead, IsLocked, IsRequest, NeedsResponse),
|
||||
ReadResp, "LoadLockedReq" },
|
||||
LoadLockedResp, "LoadLockedReq" },
|
||||
/* LoadLockedResp */
|
||||
{ SET4(IsRead, IsLocked, IsResponse, HasData),
|
||||
InvalidCmd, "LoadLockedResp" },
|
||||
|
||||
Reference in New Issue
Block a user