33a34
> #include "sim/serialize.hh"
35a37,41
> #include "cpu/quiesce_event.hh"
> #include "kern/kernel_stats.hh"
> #endif
>
> #if FULL_SYSTEM
51a58,65
> void
> ThreadState::serialize(std::ostream &os)
> {
> SERIALIZE_ENUM(_status);
> // thread_num and cpu_id are deterministic from the config
> SERIALIZE_SCALAR(funcExeInst);
> SERIALIZE_SCALAR(inst);
>
52a67,74
> Tick quiesceEndTick = 0;
> if (quiesceEvent->scheduled())
> quiesceEndTick = quiesceEvent->when();
> SERIALIZE_SCALAR(quiesceEndTick);
> if (kernelStats)
> kernelStats->serialize(os);
> #endif
> }
54a77,97
> ThreadState::unserialize(Checkpoint *cp, const std::string &section)
> {
>
> UNSERIALIZE_ENUM(_status);
> // thread_num and cpu_id are deterministic from the config
> UNSERIALIZE_SCALAR(funcExeInst);
> UNSERIALIZE_SCALAR(inst);
>
> #if FULL_SYSTEM
> Tick quiesceEndTick;
> UNSERIALIZE_SCALAR(quiesceEndTick);
> if (quiesceEndTick)
> quiesceEvent->schedule(quiesceEndTick);
> if (kernelStats)
> kernelStats->unserialize(cp, section);
> #endif
> }
>
> #if FULL_SYSTEM
>
> void