summaryrefslogtreecommitdiff
path: root/sim/sim_events.cc
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2003-10-28 10:05:58 -0500
committerNathan Binkert <binkertn@umich.edu>2003-10-28 10:05:58 -0500
commitcec7f73abf841a65bdce38d6eb67a643e4879335 (patch)
tree1c2fbce339a33ef5efc8e64a3f623482b04bb46e /sim/sim_events.cc
parent5cf0b0541b7536221643606e368bd0d0e530125a (diff)
downloadgem5-cec7f73abf841a65bdce38d6eb67a643e4879335.tar.xz
emulate callpal halt for non FULL_SYSTEM
in the process make m5_exit more generic arch/alpha/ev5.cc: arch/alpha/ev5.hh: There's no reason that this needs to be in an arch specific file arch/alpha/isa_desc: m5_exit -> SimExit Emulate callpal halt and cause the simulator to exit while we're at it, sort #includes sim/sim_events.cc: sim/sim_events.hh: move the m5_exit function here, renaming it to SimExit. Also Allow the caller to pass in the termination message. --HG-- extra : convert_revision : 54b43b17a412ab387b8672c27ef0b04fce10ee15
Diffstat (limited to 'sim/sim_events.cc')
-rw-r--r--sim/sim_events.cc5
1 files changed, 5 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