diff --git a/src/arch/arm/fastmodel/iris/cpu.cc b/src/arch/arm/fastmodel/iris/cpu.cc index e5d95ef65c..6c282b69ae 100644 --- a/src/arch/arm/fastmodel/iris/cpu.cc +++ b/src/arch/arm/fastmodel/iris/cpu.cc @@ -31,6 +31,7 @@ #include "arch/arm/fastmodel/iris/thread_context.hh" #include "scx/scx.h" +#include "sim/serialize.hh" namespace Iris { @@ -93,4 +94,10 @@ BaseCPU::init() tc->initMemProxies(tc); } +void +BaseCPU::serializeThread(CheckpointOut &cp, ThreadID tid) const +{ + ::serialize(*threadContexts[tid], cp); +} + } // namespace Iris diff --git a/src/arch/arm/fastmodel/iris/cpu.hh b/src/arch/arm/fastmodel/iris/cpu.hh index 0d15fc82a4..3b913b92da 100644 --- a/src/arch/arm/fastmodel/iris/cpu.hh +++ b/src/arch/arm/fastmodel/iris/cpu.hh @@ -118,6 +118,8 @@ class BaseCPU : public ::BaseCPU } void init() override; + + void serializeThread(CheckpointOut &cp, ThreadID tid) const override; }; // This class specializes the one above and sets up ThreadContexts based on