diff options
author | Vincentius Robby <acolyte@umich.edu> | 2007-06-20 15:04:36 -0400 |
---|---|---|
committer | Vincentius Robby <acolyte@umich.edu> | 2007-06-20 15:04:36 -0400 |
commit | 4a7bc06553577f25e8dc895fa20506c62455a4b6 (patch) | |
tree | 9dc09673efc463a8d51db3113ce023e07a1753ba /src/mem | |
parent | d540dde5b4ed38c5aec846282082dd04fce24b78 (diff) | |
download | gem5-4a7bc06553577f25e8dc895fa20506c62455a4b6.tar.xz |
Minor error.
--HG--
extra : convert_revision : 514032e21c8861f20fcbcae7204e132088cc7dbc
Diffstat (limited to 'src/mem')
-rw-r--r-- | src/mem/bus.cc | 2 |
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 |