diff options
Diffstat (limited to 'dev/tsunami_cchip.cc')
-rw-r--r-- | dev/tsunami_cchip.cc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/dev/tsunami_cchip.cc b/dev/tsunami_cchip.cc index b825a91bc..2d8113491 100644 --- a/dev/tsunami_cchip.cc +++ b/dev/tsunami_cchip.cc @@ -279,13 +279,23 @@ TsunamiCChip::clearDRIR(uint64_t bitvector) void TsunamiCChip::serialize(std::ostream &os) { - // code should be written + SERIALIZE_ARRAY(dim, Tsunami::Max_CPUs); + SERIALIZE_ARRAY(dir, Tsunami::Max_CPUs); + SERIALIZE_ARRAY(dirInterrupting, Tsunami::Max_CPUs); + SERIALIZE_SCALAR(drir); + SERIALIZE_SCALAR(misc); + SERIALIZE_SCALAR(RTCInterrupting); } void TsunamiCChip::unserialize(Checkpoint *cp, const std::string §ion) { - //code should be written + UNSERIALIZE_ARRAY(dim, Tsunami::Max_CPUs); + UNSERIALIZE_ARRAY(dir, Tsunami::Max_CPUs); + UNSERIALIZE_ARRAY(dirInterrupting, Tsunami::Max_CPUs); + UNSERIALIZE_SCALAR(drir); + UNSERIALIZE_SCALAR(misc); + UNSERIALIZE_SCALAR(RTCInterrupting); } BEGIN_DECLARE_SIM_OBJECT_PARAMS(TsunamiCChip) |