summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincentius Robby <acolyte@umich.edu>2007-06-20 15:04:36 -0400
committerVincentius Robby <acolyte@umich.edu>2007-06-20 15:04:36 -0400
commit4a7bc06553577f25e8dc895fa20506c62455a4b6 (patch)
tree9dc09673efc463a8d51db3113ce023e07a1753ba /src
parentd540dde5b4ed38c5aec846282082dd04fce24b78 (diff)
downloadgem5-4a7bc06553577f25e8dc895fa20506c62455a4b6.tar.xz
Minor error.
--HG-- extra : convert_revision : 514032e21c8861f20fcbcae7204e132088cc7dbc
Diffstat (limited to 'src')
-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