From d5974eff73a3cb69e50754ba92f65a73c904c2e0 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 27 Oct 2006 06:51:28 -0400 Subject: Potential fix to clock skew problem. --HG-- extra : convert_revision : 51572523190a886fd0ff64817edc88e260c5fa9d --- src/cpu/simple/atomic.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cpu') diff --git a/src/cpu/simple/atomic.cc b/src/cpu/simple/atomic.cc index edba55b0d..b4ea4b216 100644 --- a/src/cpu/simple/atomic.cc +++ b/src/cpu/simple/atomic.cc @@ -234,6 +234,9 @@ AtomicSimpleCPU::activateContext(int thread_num, int delay) assert(!tickEvent.scheduled()); notIdleFraction++; + //Make sure ticks are still on multiples of cycles + Tick nextTick = curTick + cycles(1) - 1; + nextTick -= (nextTick % (cycles(1))); tickEvent.schedule(curTick + cycles(delay)); _status = Running; } -- cgit v1.2.3