292c292
< PhysicalMemory::serialize(ostream& os)
---
> PhysicalMemory::serialize(CheckpointOut &cp) const
306,307c306,307
< arrayParamOut(os, "lal_addr", lal_addr);
< arrayParamOut(os, "lal_cid", lal_cid);
---
> SERIALIZE_CONTAINER(lal_addr);
> SERIALIZE_CONTAINER(lal_cid);
316,317c316,317
< nameOut(os, csprintf("%s.store%d", name(), store_id));
< serializeStore(os, store_id++, s.first, s.second);
---
> ScopedCheckpointSection sec(cp, csprintf("store%d", store_id));
> serializeStore(cp, store_id++, s.first, s.second);
322,323c322,323
< PhysicalMemory::serializeStore(ostream& os, unsigned int store_id,
< AddrRange range, uint8_t* pmem)
---
> PhysicalMemory::serializeStore(CheckpointOut &cp, unsigned int store_id,
> AddrRange range, uint8_t* pmem) const
338c338
< string filepath = Checkpoint::dir() + "/" + filename.c_str();
---
> string filepath = CheckpointIn::dir() + "/" + filename.c_str();
368c368
< PhysicalMemory::unserialize(Checkpoint* cp, const string& section)
---
> PhysicalMemory::unserialize(CheckpointIn &cp)
374,375c374,375
< arrayParamIn(cp, section, "lal_addr", lal_addr);
< arrayParamIn(cp, section, "lal_cid", lal_cid);
---
> UNSERIALIZE_CONTAINER(lal_addr);
> UNSERIALIZE_CONTAINER(lal_cid);
386c386,387
< unserializeStore(cp, csprintf("%s.store%d", section, i));
---
> ScopedCheckpointSection sec(cp, csprintf("store%d", i));
> unserializeStore(cp);
392c393
< PhysicalMemory::unserializeStore(Checkpoint* cp, const string& section)
---
> PhysicalMemory::unserializeStore(CheckpointIn &cp)
401c402
< string filepath = cp->cptDir + "/" + filename;
---
> string filepath = cp.cptDir + "/" + filename;