summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mem/bus.cc2
1 files changed, 1 insertions, 1 deletions
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