diff options
author | Kevin Lim <ktlim@umich.edu> | 2006-11-09 11:37:26 -0500 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2006-11-09 11:37:26 -0500 |
commit | 21f43bfc4b01051e688a4eec4ce5aef12ad2c951 (patch) | |
tree | 86200a6122564b55d273b1791d5e6015bd83f1b3 | |
parent | 0b0d5a282a25a936d4aa92ec81ef2bd50141ce03 (diff) | |
download | gem5-21f43bfc4b01051e688a4eec4ce5aef12ad2c951.tar.xz |
Be sure to populate the packet's finishTime field in the atomic timing case.
--HG--
extra : convert_revision : ef34818eb2dea5b3a8e754bf56745a7cd2497bf0
-rw-r--r-- | src/mem/bus.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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 |