summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-04-13 14:26:56 -0400
committerNathan Binkert <binkertn@umich.edu>2005-04-13 14:26:56 -0400
commit0f894a7b2542d82b4eef60a972dab722fa6fcaaf (patch)
tree10508123a13bcb6b9e69c303d0747f8c93c5edbd
parentd86bed198ab7fbb16703317aa5414283d761968f (diff)
downloadgem5-0f894a7b2542d82b4eef60a972dab722fa6fcaaf.tar.xz
Make the exit after max checkpoints code compile.
sim/serialize.cc: call exitNow instead of SimExit. Include the header too. --HG-- extra : convert_revision : 633a8533b23cac914a2b09bd2d3ea5d85243c675
-rw-r--r--sim/serialize.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/serialize.cc b/sim/serialize.cc
index 1976e6b3c..52008c394 100644
--- a/sim/serialize.cc
+++ b/sim/serialize.cc
@@ -46,6 +46,7 @@
#include "sim/param.hh"
#include "sim/serialize.hh"
#include "sim/sim_events.hh"
+#include "sim/sim_exit.hh"
#include "sim/sim_object.hh"
using namespace std;
@@ -228,7 +229,7 @@ void
Serializable::serializeAll()
{
if (maxCount && count++ > maxCount)
- SimExit("Maximum number of checkpoints dropped");
+ exitNow("Maximum number of checkpoints dropped", 0);
string dir = Checkpoint::dir();
if (mkdir(dir.c_str(), 0775) == -1 && errno != EEXIST)