2c2
< * Copyright (c) 2010-2011 ARM Limited
---
> * Copyright (c) 2010-2012 ARM Limited
286c286
< BaseSimpleCPU::serialize(ostream &os)
---
> BaseSimpleCPU::serializeThread(ostream &os, ThreadID tid)
288,291c288,290
< SERIALIZE_ENUM(_status);
< BaseCPU::serialize(os);
< // SERIALIZE_SCALAR(inst);
< nameOut(os, csprintf("%s.xc.0", name()));
---
> assert(_status == Idle || _status == Running);
> assert(tid == 0);
>
296c295,296
< BaseSimpleCPU::unserialize(Checkpoint *cp, const string &section)
---
> BaseSimpleCPU::unserializeThread(Checkpoint *cp, const string &section,
> ThreadID tid)
298,301c298,300
< UNSERIALIZE_ENUM(_status);
< BaseCPU::unserialize(cp, section);
< // UNSERIALIZE_SCALAR(inst);
< thread->unserialize(cp, csprintf("%s.xc.0", section));
---
> if (tid != 0)
> fatal("Trying to load more than one thread into a SimpleCPU\n");
> thread->unserialize(cp, section);