summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-11-10 11:51:18 -0800
committerNathan Binkert <nate@binkert.org>2008-11-10 11:51:18 -0800
commitea70a44c9f18c895f920cc13bcaf7b3d7fa3c74d (patch)
tree8714898f2225c93addbf94b8b4715cce2fbbcf21
parent4e02e7c217a1ee81dc16c378582697dd5a14de47 (diff)
downloadgem5-ea70a44c9f18c895f920cc13bcaf7b3d7fa3c74d.tar.xz
clean: Move some stuff from the hh file to the cc file.
-rw-r--r--src/sim/serialize.cc18
-rw-r--r--src/sim/serialize.hh11
2 files changed, 23 insertions, 6 deletions
diff --git a/src/sim/serialize.cc b/src/sim/serialize.cc
index a4851d3f6..ee9b04236 100644
--- a/src/sim/serialize.cc
+++ b/src/sim/serialize.cc
@@ -394,6 +394,24 @@ Globals::unserialize(Checkpoint *cp)
mainEventQueue.unserialize(cp, "MainEventQueue");
}
+Serializable::Serializable()
+{
+}
+
+Serializable::~Serializable()
+{
+}
+
+void
+Serializable::serialize(std::ostream &os)
+{
+}
+
+void
+Serializable::unserialize(Checkpoint *cp, const std::string &section)
+{
+}
+
void
Serializable::serializeAll(const std::string &cpt_dir)
{
diff --git a/src/sim/serialize.hh b/src/sim/serialize.hh
index 4c5f399e6..c33633065 100644
--- a/src/sim/serialize.hh
+++ b/src/sim/serialize.hh
@@ -121,17 +121,16 @@ class Serializable
void nameOut(std::ostream &os, const std::string &_name);
public:
- Serializable() {}
- virtual ~Serializable() {}
+ Serializable();
+ virtual ~Serializable();
// manditory virtual function, so objects must provide names
virtual const std::string name() const = 0;
- virtual void serialize(std::ostream &os) {}
- virtual void unserialize(Checkpoint *cp, const std::string &section) {}
+ virtual void serialize(std::ostream &os);
+ virtual void unserialize(Checkpoint *cp, const std::string &section);
- static Serializable *create(Checkpoint *cp,
- const std::string &section);
+ static Serializable *create(Checkpoint *cp, const std::string &section);
static int ckptCount;
static int ckptMaxCount;