From 21f43bfc4b01051e688a4eec4ce5aef12ad2c951 Mon Sep 17 00:00:00 2001 From: Kevin Lim Date: Thu, 9 Nov 2006 11:37:26 -0500 Subject: [PATCH] Be sure to populate the packet's finishTime field in the atomic timing case. --HG-- extra : convert_revision : ef34818eb2dea5b3a8e754bf56745a7cd2497bf0 --- src/mem/bus.cc | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2