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
This commit is contained in:
Nathan Binkert 2005-04-13 14:26:56 -04:00
parent d86bed198a
commit 0f894a7b25

View file

@ -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)