summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
Diffstat (limited to 'sim')
-rw-r--r--sim/sim_events.cc6
-rw-r--r--sim/sim_events.hh2
-rw-r--r--sim/sim_exit.hh3
3 files changed, 3 insertions, 8 deletions
diff --git a/sim/sim_events.cc b/sim/sim_events.cc
index 265bf63dc..98d3b086d 100644
--- a/sim/sim_events.cc
+++ b/sim/sim_events.cc
@@ -63,12 +63,6 @@ SimExitEvent::description()
return "simulation termination";
}
-void
-SimExit(Tick when, const char *message)
-{
- static SimExitEvent event(when, message);
-}
-
//
// constructor: automatically schedules at specified time
//
diff --git a/sim/sim_events.hh b/sim/sim_events.hh
index 8a420e419..c4db248e0 100644
--- a/sim/sim_events.hh
+++ b/sim/sim_events.hh
@@ -66,8 +66,6 @@ class SimExitEvent : public Event
virtual const char *description();
};
-void SimExit(Tick when, const char *message);
-
//
// Event class to terminate simulation after 'n' related events have
// occurred using a shared counter: used to terminate when *all*
diff --git a/sim/sim_exit.hh b/sim/sim_exit.hh
index 847d9eb10..9a8b22d51 100644
--- a/sim/sim_exit.hh
+++ b/sim/sim_exit.hh
@@ -31,11 +31,14 @@
#include <string>
+#include "sim/host.hh"
+
class Callback;
void registerExitCallback(Callback *);
void exitNow(const std::string &cause, int exit_code);
void exitNow(const char *cause, int exit_code);
+void SimExit(Tick when, const char *message);
#endif // __SIM_EXIT_HH__