From: Nathan Binkert Date: Sun, 18 Feb 2007 06:07:50 +0000 (-0800) Subject: Give the progress event its own priority X-Git-Tag: m5_2.0_beta3~187 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c1c68a31ec0d2ab58ddc610aeeaddc14fa61cd3;p=gem5.git Give the progress event its own priority --HG-- extra : convert_revision : 6357ade64deb42fae68b2766545b1c4cdc673fc9 --- diff --git a/src/cpu/base.cc b/src/cpu/base.cc index 8440d2320..d5a023c59 100644 --- a/src/cpu/base.cc +++ b/src/cpu/base.cc @@ -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) diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh index 1aeb26e25..a57e9077e 100644 --- a/src/sim/eventq.hh +++ b/src/sim/eventq.hh @@ -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