summaryrefslogtreecommitdiff
path: root/src/sim/serialize.hh
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2015-09-01 13:40:05 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2015-09-01 13:40:05 +0100
commitdb465fd7888337e90269e1efd2af995cb6bc4ca9 (patch)
tree531a99e061840b16bf31c0dde335be476343f77e /src/sim/serialize.hh
parent66941163e50abceaa86c5eb6a18de6bbc2ec4ef8 (diff)
downloadgem5-db465fd7888337e90269e1efd2af995cb6bc4ca9.tar.xz
sim: Move SimObject resolver to sim_object.hh
The object resolver isn't serialization specific and shouldn't live in serialize.hh. Move it to sim_object.hh since it queries to the SimObject hierarchy.
Diffstat (limited to 'src/sim/serialize.hh')
-rw-r--r--src/sim/serialize.hh12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/sim/serialize.hh b/src/sim/serialize.hh
index a0be62db5..356547881 100644
--- a/src/sim/serialize.hh
+++ b/src/sim/serialize.hh
@@ -64,6 +64,7 @@ class IniFile;
class Serializable;
class CheckpointIn;
class SimObject;
+class SimObjectResolver;
class EventQueue;
typedef std::ostream CheckpointOut;
@@ -449,17 +450,6 @@ class SerializableClass
SerializableClass the##OBJ_CLASS##Class(CLASS_NAME, \
OBJ_CLASS::createForUnserialize);
-// Base class to wrap object resolving functionality. This can be
-// provided to Checkpoint to allow it to map object names onto
-// object C++ objects in which to unserialize
-class SimObjectResolver
-{
- public:
- virtual ~SimObjectResolver() { }
-
- // Find a SimObject given a full path name
- virtual SimObject *resolveSimObject(const std::string &name) = 0;
-};
class CheckpointIn
{