From 00232a868e4816d19c129fb3d6ef5519d7176d5a Mon Sep 17 00:00:00 2001 From: Austin Harris Date: Mon, 20 Nov 2017 15:55:40 -0600 Subject: sim: Fix need to save address space info during serialization. This fixes a fatal already mapped error in FuncPageTable::allocate that occurs in some cases when restoring from a checkpoint. Change-Id: Ib726a69358118626663e42b7f14889b0d3a98de0 Reported-by: Ruohuang Zheng Signed-off-by: Austin Harris Reviewed-on: https://gem5-review.googlesource.com/5901 Reviewed-by: Gabe Black Reviewed-by: Andreas Sandberg Maintainer: Jason Lowe-Power --- src/sim/process.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sim/process.cc') diff --git a/src/sim/process.cc b/src/sim/process.cc index bfc52c361..ee90667ff 100644 --- a/src/sim/process.cc +++ b/src/sim/process.cc @@ -367,6 +367,7 @@ Process::fixupStackFault(Addr vaddr) void Process::serialize(CheckpointOut &cp) const { + memState->serialize(cp); pTable->serialize(cp); /** * Checkpoints for file descriptors currently do not work. Need to @@ -384,6 +385,7 @@ Process::serialize(CheckpointOut &cp) const void Process::unserialize(CheckpointIn &cp) { + memState->unserialize(cp); pTable->unserialize(cp); /** * Checkpoints for file descriptors currently do not work. Need to -- cgit v1.2.3