44 paramOut(cp, base +
".simLength", simLength);
45 paramOut(cp, base +
".bufLength", bufLength);
54 unsigned chkpt_buf_length;
55 if (
optParamIn(cp, base +
".bufLength", chkpt_buf_length)) {
59 assert(!
data || chkpt_buf_length <= bufLength);
60 bufLength = chkpt_buf_length;
67 assert(
length <= bufLength);
69 data =
new uint8_t[bufLength];
71 if (!
optParamIn(cp, base +
".simLength", simLength))
bool optParamIn(CheckpointIn &cp, const string &name, T ¶m, bool warn)
void paramOut(CheckpointOut &cp, const string &name, ExtMachInst const &machInst)
void unserialize(const std::string &base, CheckpointIn &cp)
void arrayParamOut(CheckpointOut &cp, const std::string &name, const CircleBuf< T > ¶m)
std::ostream CheckpointOut
void serialize(const std::string &base, CheckpointOut &cp) const
void paramIn(CheckpointIn &cp, const string &name, ExtMachInst &machInst)
void arrayParamIn(CheckpointIn &cp, const std::string &name, CircleBuf< T > ¶m)