changeset f1d298b7416c in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=f1d298b7416c
description:
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:
src/sim/sim_events.cc | 4 ++--
src/sim/sim_events.hh | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 4ee66d8c1dd8 -r f1d298b7416c src/sim/sim_events.cc
--- a/src/sim/sim_events.cc Fri Jan 07 21:50:29 2011 -0800
+++ b/src/sim/sim_events.cc Fri Jan 07 21:50:29 2011 -0800
@@ -85,14 +85,14 @@
}
CountedDrainEvent::CountedDrainEvent()
- : SimLoopExitEvent("Finished drain", 0), count(0)
+ : count(0)
{ }
void
CountedDrainEvent::process()
{
if (--count == 0)
- exitSimLoop(cause, code);
+ exitSimLoop("Finished drain", 0);
}
//
diff -r 4ee66d8c1dd8 -r f1d298b7416c src/sim/sim_events.hh
--- a/src/sim/sim_events.hh Fri Jan 07 21:50:29 2011 -0800
+++ b/src/sim/sim_events.hh Fri Jan 07 21:50:29 2011 -0800
@@ -55,7 +55,7 @@
virtual const char *description() const;
};
-class CountedDrainEvent : public SimLoopExitEvent
+class CountedDrainEvent : public Event
{
private:
// Count of how many objects have not yet drained
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev