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.
This commit is contained in:
parent
be246cef62
commit
f4a897d8e3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue