#include "arch/riscv/registers.hh"
#include "base/bitfield.hh"
#include "cpu/base.hh"
+#include "debug/Checkpoint.hh"
#include "debug/RiscvMisc.hh"
#include "params/RiscvISA.hh"
#include "sim/core.hh"
}
}
+void
+ISA::serialize(CheckpointOut &cp) const
+{
+ DPRINTF(Checkpoint, "Serializing Riscv Misc Registers\n");
+ SERIALIZE_CONTAINER(miscRegFile);
+}
+
+void
+ISA::unserialize(CheckpointIn &cp)
+{
+ DPRINTF(Checkpoint, "Unserializing Riscv Misc Registers\n");
+ UNSERIALIZE_CONTAINER(miscRegFile);
+}
+
}
RiscvISA::ISA *
void startup(ThreadContext *tc) {}
+ void serialize(CheckpointOut &cp) const;
+ void unserialize(CheckpointIn &cp);
+
/// Explicitly import the otherwise hidden startup
using BaseISA::startup;