summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-10-28 03:44:55 -0400
committerGabe Black <gblack@eecs.umich.edu>2006-10-28 03:44:55 -0400
commit27ef642a763bc6e0c79f0326b4c07018a42205f9 (patch)
treeff73676a186732d4944fc55838e5b239ec8e2e0e
parenta46e19f7384eb3e6a03136ddab5ba74716e43eb6 (diff)
downloadgem5-27ef642a763bc6e0c79f0326b4c07018a42205f9.tar.xz
One last adjustment to get rid of skew in the simple atomic cpu.
--HG-- extra : convert_revision : 8e46929ed7da5dae6888f773de4e1ecc9b249fe0
-rw-r--r--src/cpu/simple/atomic.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/simple/atomic.cc b/src/cpu/simple/atomic.cc
index a72f6361a..11e4d2acb 100644
--- a/src/cpu/simple/atomic.cc
+++ b/src/cpu/simple/atomic.cc
@@ -240,7 +240,7 @@ AtomicSimpleCPU::activateContext(int thread_num, int delay)
notIdleFraction++;
//Make sure ticks are still on multiples of cycles
- Tick nextTick = curTick + cycles(1) - 1;
+ Tick nextTick = curTick + cycles(delay + 1) - 1;
nextTick -= (nextTick % (cycles(1)));
tickEvent.schedule(nextTick);
_status = Running;