From a1e82259759ce7290269aeca6742098f1adbf2fd Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Mon, 8 Nov 2010 13:58:25 -0600 Subject: ARM: Add checkpointing support --- src/arch/arm/isa.hh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/arch/arm/isa.hh') diff --git a/src/arch/arm/isa.hh b/src/arch/arm/isa.hh index 8318417f5..88d08e971 100644 --- a/src/arch/arm/isa.hh +++ b/src/arch/arm/isa.hh @@ -178,10 +178,18 @@ namespace ArmISA } void serialize(EventManager *em, std::ostream &os) - {} + { + DPRINTF(Checkpoint, "Serializing Arm Misc Registers\n"); + SERIALIZE_ARRAY(miscRegs, NumMiscRegs); + } void unserialize(EventManager *em, Checkpoint *cp, const std::string §ion) - {} + { + DPRINTF(Checkpoint, "Unserializing Arm Misc Registers\n"); + UNSERIALIZE_ARRAY(miscRegs, NumMiscRegs); + CPSR tmp_cpsr = miscRegs[MISCREG_CPSR]; + updateRegMap(tmp_cpsr); + } ISA() { -- cgit v1.2.3