summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas@sandberg.pp.se>2014-03-06 15:59:53 +0100
committerAndreas Sandberg <andreas@sandberg.pp.se>2014-03-06 15:59:53 +0100
commitf4a897d8e3e7a9fe5f409c0f15dfa5ba9438776c (patch)
tree7a61c43df5a5f9f1929dda7ad00e0c065c4f6693 /src/sim
parentbe246cef6251113ad25f59cfef37b746c80b11c5 (diff)
downloadgem5-f4a897d8e3e7a9fe5f409c0f15dfa5ba9438776c.tar.xz
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.
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/simulate.cc2
1 files changed, 1 insertions, 1 deletions
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;