From: Kevin Lim Date: Thu, 9 Nov 2006 16:37:26 +0000 (-0500) Subject: Be sure to populate the packet's finishTime field in the atomic timing case. X-Git-Tag: m5_2.0_beta2~53^2~3^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21f43bfc4b01051e688a4eec4ce5aef12ad2c951;p=gem5.git Be sure to populate the packet's finishTime field in the atomic timing case. --HG-- extra : convert_revision : ef34818eb2dea5b3a8e754bf56745a7cd2497bf0 --- diff --git a/src/mem/bus.cc b/src/mem/bus.cc index ae87d8099..8ea67a0e4 100644 --- a/src/mem/bus.cc +++ b/src/mem/bus.cc @@ -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