diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2011-01-07 21:50:29 -0800 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2011-01-07 21:50:29 -0800 |
commit | 94807214c417f3124e2824597c2867f91c1017b3 (patch) | |
tree | 2d16634fb80169d3d7d0f1a9002a15bf78e54bc7 /src/sim | |
parent | 030736a69b238f1da7f9ed6409ce5ab9e094c9fb (diff) | |
download | gem5-94807214c417f3124e2824597c2867f91c1017b3.tar.xz |
sim: clean up CountedDrainEvent slightly.
There's no reason for it to derive from SimLoopExitEvent.
This whole drain thing needs to be redone eventually,
but this is a stopgap to make later changes to
SimLoopExitEvent feasible.
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/sim_events.cc | 4 | ||||
-rw-r--r-- | src/sim/sim_events.hh | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/sim/sim_events.cc b/src/sim/sim_events.cc index d53fca3c3..6d743cac6 100644 --- a/src/sim/sim_events.cc +++ b/src/sim/sim_events.cc @@ -85,14 +85,14 @@ exitSimLoop(const std::string &message, int exit_code, Tick when, Tick repeat) } CountedDrainEvent::CountedDrainEvent() - : SimLoopExitEvent("Finished drain", 0), count(0) + : count(0) { } void CountedDrainEvent::process() { if (--count == 0) - exitSimLoop(cause, code); + exitSimLoop("Finished drain", 0); } // diff --git a/src/sim/sim_events.hh b/src/sim/sim_events.hh index 17e2cc202..6ea361a05 100644 --- a/src/sim/sim_events.hh +++ b/src/sim/sim_events.hh @@ -55,7 +55,7 @@ class SimLoopExitEvent : public Event virtual const char *description() const; }; -class CountedDrainEvent : public SimLoopExitEvent +class CountedDrainEvent : public Event { private: // Count of how many objects have not yet drained |