From f4a897d8e3e7a9fe5f409c0f15dfa5ba9438776c Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Thu, 6 Mar 2014 15:59:53 +0100 Subject: [PATCH] sim: Schedule the global sync event at curTick() + simQuantum The global synchronization event used to be scheduled at simQuantum. This prevented repeated entries into gem5 from Python as it can be scheduled in the past. This changeset ensures that the first global synchronization happens at curTick() + simQuantum instead. --- src/sim/simulate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sim/simulate.cc b/src/sim/simulate.cc index 407e2274e..b60b8a783 100644 --- a/src/sim/simulate.cc +++ b/src/sim/simulate.cc @@ -114,7 +114,7 @@ simulate(Tick num_cycles) fatal("Quantum for multi-eventq simulation not specified"); } - quantum_event = new GlobalSyncEvent(simQuantum, simQuantum, + quantum_event = new GlobalSyncEvent(curTick() + simQuantum, simQuantum, EventBase::Progress_Event_Pri, 0); inParallelMode = true;