summaryrefslogtreecommitdiff
path: root/dev/tsunami_uart.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_uart.cc
parentf7c4d57260d1ce43089a3a8e05915be782912632 (diff)
downloadgem5-0f34a00703bf4dd2cd0ff673e343b72ad5bdc5bd.tar.xz
added serializeation code
--HG-- extra : convert_revision : 468f3c739707d167af43562695b604fd7dead661
Diffstat (limited to 'dev/tsunami_uart.cc')
-rw-r--r--dev/tsunami_uart.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev/tsunami_uart.cc b/dev/tsunami_uart.cc
index ab9236081..4b9e7a76b 100644
--- a/dev/tsunami_uart.cc
+++ b/dev/tsunami_uart.cc
@@ -117,7 +117,6 @@ TsunamiUart::read(MemReqPtr &req, uint8_t *data)
*data = 0;
return No_Fault;
case 0xA:
- //*data = 2<<6; // This means a 8250 serial port, do we want a 16550?
*data = 0; // This means a 8250 serial port, do we want a 16550?
return No_Fault;
}
@@ -183,6 +182,7 @@ TsunamiUart::serialize(ostream &os)
SERIALIZE_SCALAR(status_store);
SERIALIZE_SCALAR(next_char);
SERIALIZE_SCALAR(valid_char);
+ SERIALIZE_SCALAR(IER);
}
void
@@ -191,6 +191,7 @@ TsunamiUart::unserialize(Checkpoint *cp, const std::string &section)
UNSERIALIZE_SCALAR(status_store);
UNSERIALIZE_SCALAR(next_char);
UNSERIALIZE_SCALAR(valid_char);
+ UNSERIALIZE_SCALAR(IER);
}
BEGIN_DECLARE_SIM_OBJECT_PARAMS(TsunamiUart)