summaryrefslogtreecommitdiff
path: root/src/python/m5/SimObject.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/m5/SimObject.py')
-rw-r--r--src/python/m5/SimObject.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py
index 3aea55f5f..9f43fc70c 100644
--- a/src/python/m5/SimObject.py
+++ b/src/python/m5/SimObject.py
@@ -595,7 +595,7 @@ class SimObject(object):
abstract = True
cxx_header = "sim/sim_object.hh"
- cxx_bases = [ "Drainable" ]
+ cxx_bases = [ "Drainable", "Serializable" ]
@classmethod
def export_method_swig_predecls(cls, code):
@@ -603,6 +603,7 @@ class SimObject(object):
%include <std_string.i>
%import "python/swig/drain.i"
+%import "python/swig/serialize.i"
''')
@classmethod