diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2004-02-11 15:36:36 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2004-02-11 15:36:36 -0500 |
commit | 29eae76153c325e1b16785e65381075eaeaa7d3b (patch) | |
tree | 61473081de8105d5f421249815de11c69e394604 /dev/tsunami_io.cc | |
parent | e72e8b28c8579f56b36b89f1b6cbfba169202f1e (diff) | |
parent | 0f34a00703bf4dd2cd0ff673e343b72ad5bdc5bd (diff) | |
download | gem5-29eae76153c325e1b16785e65381075eaeaa7d3b.tar.xz |
Merge
dev/tsunami_cchip.cc:
dev/tsunami_io.cc:
dev/tsunami_pchip.cc:
dev/tsunami_uart.cc:
SCCS merged
--HG--
extra : convert_revision : da3d1998d6dd39e0d3f8754074c513cdd8a4193c
Diffstat (limited to 'dev/tsunami_io.cc')
-rw-r--r-- | dev/tsunami_io.cc | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/dev/tsunami_io.cc b/dev/tsunami_io.cc index 15727631b..ccf0bc2da 100644 --- a/dev/tsunami_io.cc +++ b/dev/tsunami_io.cc @@ -346,13 +346,35 @@ TsunamiIO::clearPIC(uint8_t bitvector) void TsunamiIO::serialize(std::ostream &os) { - // code should be written + SERIALIZE_SCALAR(timerData); + SERIALIZE_SCALAR(uip); + SERIALIZE_SCALAR(picr); + SERIALIZE_SCALAR(picInterrupting); + Tick time0when = timer0.when(); + Tick time2when = timer2.when(); + Tick rtcwhen = rtc.when(); + SERIALIZE_SCALAR(time0when); + SERIALIZE_SCALAR(time2when); + SERIALIZE_SCALAR(rtcwhen); + } void TsunamiIO::unserialize(Checkpoint *cp, const std::string §ion) { - //code should be written + UNSERIALIZE_SCALAR(timerData); + UNSERIALIZE_SCALAR(uip); + UNSERIALIZE_SCALAR(picr); + UNSERIALIZE_SCALAR(picInterrupting); + Tick time0when; + Tick time2when; + Tick rtcwhen; + UNSERIALIZE_SCALAR(time0when); + UNSERIALIZE_SCALAR(time2when); + UNSERIALIZE_SCALAR(rtcwhen); + timer0.reschedule(time0when); + timer2.reschedule(time2when); + rtc.reschedule(rtcwhen); } BEGIN_DECLARE_SIM_OBJECT_PARAMS(TsunamiIO) |