Minor error.
authorVincentius Robby <acolyte@umich.edu>
Wed, 20 Jun 2007 19:04:36 +0000 (15:04 -0400)
committerVincentius Robby <acolyte@umich.edu>
Wed, 20 Jun 2007 19:04:36 +0000 (15:04 -0400)
--HG--
extra : convert_revision : 514032e21c8861f20fcbcae7204e132088cc7dbc

src/mem/bus.cc

index 806c7ed85c32ae3331bc1a7823fb0670b9e5a793..d818a25ea4561ec3ed1ba311d49cb255770f888f 100644 (file)
@@ -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