From: Nathan Binkert Date: Wed, 13 Apr 2005 18:26:56 +0000 (-0400) Subject: Make the exit after max checkpoints code compile. X-Git-Tag: m5_1.0_tutorial~64^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f894a7b2542d82b4eef60a972dab722fa6fcaaf;p=gem5.git 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 --- 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)