diff options
author | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2012-11-02 11:32:02 -0500 |
---|---|---|
committer | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2012-11-02 11:32:02 -0500 |
commit | aae6134b5487e02a90445d1b2146583740658b09 (patch) | |
tree | 95253a9db555dcfcac23c7875ce5003c12f75cde /src/python/m5/SimObject.py | |
parent | dc01535c7e800189c4cb46cab470f4b958be94c7 (diff) | |
download | gem5-aae6134b5487e02a90445d1b2146583740658b09.tar.xz |
sim: Add SWIG interface for Serializable
This changeset adds a SWIG interface for the Serializable class, which
fixes a warning when compiling the SWIG interface for the event
queue. Currently, the only method exported is the name() method.
Diffstat (limited to 'src/python/m5/SimObject.py')
-rw-r--r-- | src/python/m5/SimObject.py | 3 |
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 |