diff options
author | Nathan Binkert <binkertn@umich.edu> | 2007-02-17 22:07:50 -0800 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2007-02-17 22:07:50 -0800 |
commit | 8c1c68a31ec0d2ab58ddc610aeeaddc14fa61cd3 (patch) | |
tree | 33bd5e8eaaaab740330fac80a7a1f89ffc127f2f /src | |
parent | 08f024d3ff68ae533f9d96ebd0e470a1874a7d86 (diff) | |
download | gem5-8c1c68a31ec0d2ab58ddc610aeeaddc14fa61cd3.tar.xz |
Give the progress event its own priority
--HG--
extra : convert_revision : 6357ade64deb42fae68b2766545b1c4cdc673fc9
Diffstat (limited to 'src')
-rw-r--r-- | src/cpu/base.cc | 2 | ||||
-rw-r--r-- | src/sim/eventq.hh | 3 |
2 files changed, 4 insertions, 1 deletions
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 |