void
SimConsole::serialize(ostream &os)
{
+ SERIALIZE_SCALAR(_status);
+ SERIALIZE_SCALAR(_enable);
}
void
SimConsole::unserialize(Checkpoint *cp, const std::string §ion)
{
+ UNSERIALIZE_SCALAR(_status);
+ UNSERIALIZE_SCALAR(_enable);
}
{
SERIALIZE_SCALAR(timerData);
SERIALIZE_SCALAR(uip);
+ SERIALIZE_SCALAR(mask1);
+ SERIALIZE_SCALAR(mask2);
+ SERIALIZE_SCALAR(mode1);
+ SERIALIZE_SCALAR(mode2);
SERIALIZE_SCALAR(picr);
SERIALIZE_SCALAR(picInterrupting);
Tick time0when = timer0.when();
SERIALIZE_SCALAR(time0when);
SERIALIZE_SCALAR(time2when);
SERIALIZE_SCALAR(rtcwhen);
+ SERIALIZE_SCALAR(RTCAddress);
}
{
UNSERIALIZE_SCALAR(timerData);
UNSERIALIZE_SCALAR(uip);
+ UNSERIALIZE_SCALAR(mask1);
+ UNSERIALIZE_SCALAR(mask2);
+ UNSERIALIZE_SCALAR(mode1);
+ UNSERIALIZE_SCALAR(mode2);
UNSERIALIZE_SCALAR(picr);
UNSERIALIZE_SCALAR(picInterrupting);
Tick time0when;
timer0.reschedule(time0when);
timer2.reschedule(time2when);
rtc.reschedule(rtcwhen);
+ UNSERIALIZE_SCALAR(RTCAddress);
}
BEGIN_DECLARE_SIM_OBJECT_PARAMS(TsunamiIO)
SERIALIZE_SCALAR(next_char);
SERIALIZE_SCALAR(valid_char);
SERIALIZE_SCALAR(IER);
+ Tick intrwhen;
+ if (intrEvent.scheduled())
+ intrwhen = intrEvent.when();
+ else
+ intrwhen = 0;
+ SERIALIZE_SCALAR(intrwhen);
+
+
}
void
UNSERIALIZE_SCALAR(next_char);
UNSERIALIZE_SCALAR(valid_char);
UNSERIALIZE_SCALAR(IER);
+ Tick intrwhen;
+ UNSERIALIZE_SCALAR(intrwhen);
+ if (intrwhen != 0)
+ intrEvent.schedule(intrwhen);
+
}
BEGIN_DECLARE_SIM_OBJECT_PARAMS(TsunamiUart)