summaryrefslogtreecommitdiff
path: root/src/sim/sim_exit.hh
diff options
context:
space:
mode:
authorDam Sunwoo <dam.sunwoo@arm.com>2013-10-31 13:41:13 -0500
committerDam Sunwoo <dam.sunwoo@arm.com>2013-10-31 13:41:13 -0500
commit6b4543184ea4203f44210f8061b888d8d683979a (patch)
treed9cba5515acc22363ffd7261e482e36e2f783d04 /src/sim/sim_exit.hh
parent19c2a606fadbf04d1839eec738bbabccb218c7f3 (diff)
downloadgem5-6b4543184ea4203f44210f8061b888d8d683979a.tar.xz
sim: added option to serialize SimLoopExitEvent
SimLoopExitEvents weren't serialized by default. Some benchmarks utilize a delayed m5 exit pseudo op call to terminate the simulation and this event was lost when resuming from a checkpoint generated after the pseudo op call. This patch adds the capability to serialize the SimLoopExitEvents and enable serialization for m5_exit and m5_fail pseudo ops by default. Does not affect other generic SimLoopExitEvents.
Diffstat (limited to 'src/sim/sim_exit.hh')
-rw-r--r--src/sim/sim_exit.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sim/sim_exit.hh b/src/sim/sim_exit.hh
index da71cc912..ef73d822d 100644
--- a/src/sim/sim_exit.hh
+++ b/src/sim/sim_exit.hh
@@ -51,6 +51,7 @@ void registerExitCallback(Callback *);
/// and exit_code parameters are saved in the SimLoopExitEvent to
/// indicate why the exit occurred.
void exitSimLoop(const std::string &message, int exit_code = 0,
- Tick when = curTick(), Tick repeat = 0);
+ Tick when = curTick(), Tick repeat = 0,
+ bool serialize = false);
#endif // __SIM_EXIT_HH__