diff options
Diffstat (limited to 'sim')
-rw-r--r-- | sim/sim_events.cc | 5 | ||||
-rw-r--r-- | sim/sim_events.hh | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sim/sim_events.cc b/sim/sim_events.cc index b622cb14d..5f24de516 100644 --- a/sim/sim_events.cc +++ b/sim/sim_events.cc @@ -63,6 +63,11 @@ SimExitEvent::description() return "simulation termination"; } +void +SimExit(const char *message) +{ + static SimExitEvent event(message); +} // // constructor: automatically schedules at specified time diff --git a/sim/sim_events.hh b/sim/sim_events.hh index b1ae7793a..0029a8404 100644 --- a/sim/sim_events.hh +++ b/sim/sim_events.hh @@ -66,6 +66,8 @@ class SimExitEvent : public Event virtual const char *description(); }; +void SimExit(const char *message); + // // Event class to terminate simulation after 'n' related events have // occurred using a shared counter: used to terminate when *all* |