summaryrefslogtreecommitdiff
path: root/src/arch/mips
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-10-15 08:12:29 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2012-10-15 08:12:29 -0400
commitd7ad8dc608dd6de4ff9c930de79edcdc3bdf8d40 (patch)
treeade28cbaf338c105085fc9573356ff722354a720 /src/arch/mips
parent0c58106b6e27445e259d82bb13e2a5b6ae991bb6 (diff)
downloadgem5-d7ad8dc608dd6de4ff9c930de79edcdc3bdf8d40.tar.xz
Checkpoint: Make system serialize call children
This patch changes how the serialization of the system works. The base class had a non-virtual serialize and unserialize, that was hidden by a function with the same name for a number of subclasses (most likely not intentional as the base class should have been virtual). A few of the derived systems had no specialization at all (e.g. Power and x86 that simply called the System::serialize), but MIPS and Alpha adds additional symbol table entries to the checkpoint. Instead of overriding the virtual function, the additional entries are now printed through a virtual function (un)serializeSymtab. The reason for not calling System::serialize from the two related systems is that a follow up patch will require the system to also serialize the PhysicalMemory, and if this is done in the base class if ends up being between the general parts and the specialized symbol table. With this patch, the checkpoint is not modified, as the order of the segments is unchanged.
Diffstat (limited to 'src/arch/mips')
-rwxr-xr-xsrc/arch/mips/system.cc13
-rwxr-xr-xsrc/arch/mips/system.hh5
2 files changed, 0 insertions, 18 deletions
diff --git a/src/arch/mips/system.cc b/src/arch/mips/system.cc
index f0d4c250e..c6a043e46 100755
--- a/src/arch/mips/system.cc
+++ b/src/arch/mips/system.cc
@@ -67,19 +67,6 @@ MipsSystem::breakpoint()
return 0;
}
-void
-MipsSystem::serialize(std::ostream &os)
-{
- System::serialize(os);
-}
-
-
-void
-MipsSystem::unserialize(Checkpoint *cp, const std::string &section)
-{
- System::unserialize(cp,section);
-}
-
MipsSystem *
MipsSystemParams::create()
{
diff --git a/src/arch/mips/system.hh b/src/arch/mips/system.hh
index fcaceadcd..6b74ac1e5 100755
--- a/src/arch/mips/system.hh
+++ b/src/arch/mips/system.hh
@@ -55,11 +55,6 @@ class MipsSystem : public System
virtual bool breakpoint();
public:
- /**
- * Serialization stuff
- */
- virtual void serialize(std::ostream &os);
- virtual void unserialize(Checkpoint *cp, const std::string &section);
/**
* Set the m5MipsAccess pointer in the console