Fix a couple LL/SC bugs that only affected timing mode.
authorSteve Reinhardt <stever@eecs.umich.edu>
Mon, 2 Jul 2007 16:26:36 +0000 (09:26 -0700)
committerSteve Reinhardt <stever@eecs.umich.edu>
Mon, 2 Jul 2007 16:26:36 +0000 (09:26 -0700)
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

src/cpu/simple/timing.cc
src/mem/packet.cc

index 77df2c05deba3b17bfdbce31218248565586b79a..492a669b89304079e3ac066d486b6eea871de4ff 100644 (file)
@@ -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);
 
index 8de02f533735d7176bf13dba905b3d1bb4ca027f..8cd3567684e9428f20bd1349d1b5bc282d1159ad 100644 (file)
@@ -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" },