From 7c708c8d1b9b251439227cfb49006f0b149cf197 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Thu, 11 Dec 2003 08:29:52 -0800 Subject: - Switch events to use a priority enum instead of integers. This lets us centralize priorities so we can see what's going on. - Shift serialize & cpu-switch events to happen before CPU ticks (to be consistent with starting new CPU on same cycle instead of next cycle). - Get rid of unnecessary bus stats reset callback. cpu/simple_cpu/simple_cpu.cc: sim/debug.cc: sim/eventq.hh: sim/serialize.cc: sim/sim_events.cc: sim/sim_events.hh: Switch events to use a priority enum instead of integers. This lets us centralize priorities so we can see what's going on. --HG-- extra : convert_revision : 510d79b43c0a1c97a10eb65916f7335b1de8b956 --- sim/sim_events.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sim/sim_events.cc') diff --git a/sim/sim_events.cc b/sim/sim_events.cc index 7456e788b..a31da18dd 100644 --- a/sim/sim_events.cc +++ b/sim/sim_events.cc @@ -68,14 +68,14 @@ SimExitEvent::description() // CountedExitEvent::CountedExitEvent(EventQueue *q, const std::string &_cause, Tick _when, int &_downCounter) - : Event(q), + : Event(q, Sim_Exit_Pri), cause(_cause), downCounter(_downCounter) { // catch stupid mistakes assert(downCounter > 0); - schedule(_when, 1000); + schedule(_when); } -- cgit v1.2.3