summaryrefslogtreecommitdiff
path: root/src/sim/serialize.hh
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2015-07-07 09:51:03 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2015-07-07 09:51:03 +0100
commit7cd5db8c6d7ea4ad23da5c9799a28e2224fab449 (patch)
tree57b135ea32149ccde80224b2ea32b24f3b13db56 /src/sim/serialize.hh
parent777cc71c4a54412f78eabe381532f661c6174fee (diff)
downloadgem5-7cd5db8c6d7ea4ad23da5c9799a28e2224fab449.tar.xz
sim: Add serialization macros for std containers
Diffstat (limited to 'src/sim/serialize.hh')
-rw-r--r--src/sim/serialize.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sim/serialize.hh b/src/sim/serialize.hh
index 888dba614..2fb7cddd0 100644
--- a/src/sim/serialize.hh
+++ b/src/sim/serialize.hh
@@ -160,6 +160,12 @@ void fromSimObject(T &t, SimObject *s)
#define UNSERIALIZE_ARRAY(member, size) \
arrayParamIn(cp, section, #member, member, size)
+#define SERIALIZE_CONTAINER(member) \
+ arrayParamOut(os, #member, member)
+
+#define UNSERIALIZE_CONTAINER(member) \
+ arrayParamIn(cp, section, #member, member)
+
#define SERIALIZE_OBJPTR(objptr) paramOut(os, #objptr, (objptr)->name())
#define UNSERIALIZE_OBJPTR(objptr) \