summaryrefslogtreecommitdiff
path: root/dev/etherlink.hh
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2004-02-20 12:44:41 -0500
committerRon Dreslinski <rdreslin@umich.edu>2004-02-20 12:44:41 -0500
commit373d70980eabb4598ee1fcc9429e38ef15950e04 (patch)
tree8755cf0c5a49e3627390545f0c3f34beaa4c08e1 /dev/etherlink.hh
parent4ec55bef1179a3fc8aa0e2a4c6f0ec37df444e7e (diff)
downloadgem5-373d70980eabb4598ee1fcc9429e38ef15950e04.tar.xz
Add serialization for packets on the ethernet link,
and for link events --HG-- extra : convert_revision : 0054dbc4a42dd38ff8bbf64af303bc509dd5aa8a
Diffstat (limited to 'dev/etherlink.hh')
-rw-r--r--dev/etherlink.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/dev/etherlink.hh b/dev/etherlink.hh
index e1a7957ee..8505570a6 100644
--- a/dev/etherlink.hh
+++ b/dev/etherlink.hh
@@ -96,6 +96,9 @@ class EtherLink : public SimObject
void setTxInt(Interface *i) { assert(!txint); txint = i; }
void setRxInt(Interface *i) { assert(!rxint); rxint = i; }
+
+ virtual void serialize(std::ostream &os);
+ virtual void unserialize(Checkpoint *cp, const std::string &section);
};
/*
@@ -122,6 +125,10 @@ class EtherLink : public SimObject
EtherLink(const std::string &name, EtherInt *i1, EtherInt *i2,
Tick speed, EtherDump *dump);
virtual ~EtherLink();
+
+ virtual void serialize(std::ostream &os);
+ virtual void unserialize(Checkpoint *cp, const std::string &section);
+
};
#endif // __ETHERLINK_HH__