summaryrefslogtreecommitdiff
path: root/dev/tsunami_cchip.cc
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-02-11 15:32:30 -0500
committerAli Saidi <saidi@eecs.umich.edu>2004-02-11 15:32:30 -0500
commit0f34a00703bf4dd2cd0ff673e343b72ad5bdc5bd (patch)
tree083880d2725f00a216c7879d924d7c57a360867a /dev/tsunami_cchip.cc
parentf7c4d57260d1ce43089a3a8e05915be782912632 (diff)
downloadgem5-0f34a00703bf4dd2cd0ff673e343b72ad5bdc5bd.tar.xz
added serializeation code
--HG-- extra : convert_revision : 468f3c739707d167af43562695b604fd7dead661
Diffstat (limited to 'dev/tsunami_cchip.cc')
-rw-r--r--dev/tsunami_cchip.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/dev/tsunami_cchip.cc b/dev/tsunami_cchip.cc
index 374c50d66..cdef6202e 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 &section)
{
- //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)