One last adjustment to get rid of skew in the simple atomic cpu.
authorGabe Black <gblack@eecs.umich.edu>
Sat, 28 Oct 2006 07:44:55 +0000 (03:44 -0400)
committerGabe Black <gblack@eecs.umich.edu>
Sat, 28 Oct 2006 07:44:55 +0000 (03:44 -0400)
--HG--
extra : convert_revision : 8e46929ed7da5dae6888f773de4e1ecc9b249fe0

src/cpu/simple/atomic.cc

index a72f6361a8ad49bc3f22bfe27c13aba14f2dc6cf..11e4d2acb22abad96159f8d31f474424e58d08ed 100644 (file)
@@ -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;