Give the progress event its own priority
--HG-- extra : convert_revision : 6357ade64deb42fae68b2766545b1c4cdc673fc9
This commit is contained in:
parent
08f024d3ff
commit
8c1c68a31e
2 changed files with 4 additions and 1 deletions
|
@ -63,7 +63,7 @@ int maxThreadsPerCPU = 1;
|
|||
|
||||
CPUProgressEvent::CPUProgressEvent(EventQueue *q, Tick ival,
|
||||
BaseCPU *_cpu)
|
||||
: Event(q, Event::Stat_Event_Pri), interval(ival),
|
||||
: Event(q, Event::Progress_Event_Pri), interval(ival),
|
||||
lastNumInst(0), cpu(_cpu)
|
||||
{
|
||||
if (interval)
|
||||
|
|
|
@ -169,6 +169,9 @@ class Event : public Serializable, public FastAlloc
|
|||
/// everything else, but before exit.
|
||||
Stat_Event_Pri = 90,
|
||||
|
||||
/// Progress events come at the end.
|
||||
Progress_Event_Pri = 95,
|
||||
|
||||
/// If we want to exit on this cycle, it's the very last thing
|
||||
/// we do.
|
||||
Sim_Exit_Pri = 100
|
||||
|
|
Loading…
Reference in a new issue