summaryrefslogtreecommitdiff
path: root/src/sim/sim_events.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2011-01-07 21:50:29 -0800
committerSteve Reinhardt <steve.reinhardt@amd.com>2011-01-07 21:50:29 -0800
commit94807214c417f3124e2824597c2867f91c1017b3 (patch)
tree2d16634fb80169d3d7d0f1a9002a15bf78e54bc7 /src/sim/sim_events.cc
parent030736a69b238f1da7f9ed6409ce5ab9e094c9fb (diff)
downloadgem5-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/sim_events.cc')
-rw-r--r--src/sim/sim_events.cc4
1 files changed, 2 insertions, 2 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);
}
//