From: Vincentius Robby Date: Wed, 20 Jun 2007 19:04:36 +0000 (-0400) Subject: Minor error. X-Git-Tag: m5_2.0_beta4~326^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a7bc06553577f25e8dc895fa20506c62455a4b6;p=gem5.git Minor error. --HG-- extra : convert_revision : 514032e21c8861f20fcbcae7204e132088cc7dbc --- diff --git a/src/mem/bus.cc b/src/mem/bus.cc index 806c7ed85..d818a25ea 100644 --- a/src/mem/bus.cc +++ b/src/mem/bus.cc @@ -121,7 +121,7 @@ void Bus::occupyBus(PacketPtr pkt) if (tickNextIdle < curTick) { tickNextIdle = curTick; if (tickNextIdle % clock != 0) - tickNextIdle -= (curTick % clock) + clock; + tickNextIdle = curTick - (curTick % clock) + clock; } // The packet will be sent. Figure out how long it occupies the bus, and