From 0711f4f17a4b4ac61b07cbe742f0d193f919ea8f Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Thu, 25 Oct 2007 20:13:35 -0400 Subject: SE: Fix page table and system serialization, don't reinit process if this is a checkpoint restore. --HG-- extra : convert_revision : 03dcf3c088e57b7abab60efe700d947117888306 --- src/sim/process.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/sim/process.cc') diff --git a/src/sim/process.cc b/src/sim/process.cc index c5be4087d..01155ae32 100644 --- a/src/sim/process.cc +++ b/src/sim/process.cc @@ -85,7 +85,7 @@ using namespace TheISA; int num_processes = 0; Process::Process(ProcessParams * params) - : SimObject(params), system(params->system), + : SimObject(params), system(params->system), checkpointRestored(false), max_stack_size(params->max_stack_size) { string in = params->input; @@ -335,6 +335,10 @@ Process::unserialize(Checkpoint *cp, const std::string §ion) UNSERIALIZE_ARRAY(fd_map, MAX_FD); pTable->unserialize(cp, section); + + + checkpointRestored = true; + } -- cgit v1.2.3