Be sure to populate the packet's finishTime field in the atomic timing case.
authorKevin Lim <ktlim@umich.edu>
Thu, 9 Nov 2006 16:37:26 +0000 (11:37 -0500)
committerKevin Lim <ktlim@umich.edu>
Thu, 9 Nov 2006 16:37:26 +0000 (11:37 -0500)
--HG--
extra : convert_revision : ef34818eb2dea5b3a8e754bf56745a7cd2497bf0

src/mem/bus.cc

index ae87d80990826f25f81c81ca4277c9762d35f062..8ea67a0e45236f91ca768672400e1843beb67b0b 100644 (file)
@@ -370,6 +370,10 @@ Bus::recvAtomic(PacketPtr pkt)
     DPRINTF(Bus, "recvAtomic: packet src %d dest %d addr 0x%x cmd %s\n",
             pkt->getSrc(), pkt->getDest(), pkt->getAddr(), pkt->cmdString());
     assert(pkt->getDest() == Packet::Broadcast);
+
+    // Assume one bus cycle in order to get through.  This may have
+    // some clock skew issues yet again...
+    pkt->finishTime = curTick + clock;
     Tick snoopTime = atomicSnoop(pkt);
     if (snoopTime)
         return snoopTime;  //Snoop satisfies it