From 0f894a7b2542d82b4eef60a972dab722fa6fcaaf Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Wed, 13 Apr 2005 14:26:56 -0400 Subject: 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 --- sim/serialize.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3