From: Andreas Sandberg Date: Thu, 6 Mar 2014 14:59:53 +0000 (+0100) Subject: sim: Schedule the global sync event at curTick() + simQuantum X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4a897d8e3e7a9fe5f409c0f15dfa5ba9438776c;p=gem5.git 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. --- 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;