From d76445f9f37896227f1d4e61348a418aa7ab6371 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Sun, 2 Nov 2003 20:43:39 -0500 Subject: Move the m5 pseudo instructions into their own file arch/alpha/isa_desc: Move the pseudo instructions out of the isa_desc, into their own file and call out to them when they're to be accessed sim/sim_events.cc: sim/sim_events.hh: sim/sim_exit.hh: move SimExit to sim_exit.cc --HG-- extra : convert_revision : 1c393adb1c18bd0fef065057d7f4e9cf60ac4197 --- sim/sim_events.cc | 6 ------ sim/sim_events.hh | 2 -- sim/sim_exit.hh | 3 +++ 3 files changed, 3 insertions(+), 8 deletions(-) (limited to 'sim') 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 +#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__ -- cgit v1.2.3