From aae6134b5487e02a90445d1b2146583740658b09 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Fri, 2 Nov 2012 11:32:02 -0500 Subject: 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. --- src/python/m5/SimObject.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/python/m5/SimObject.py') 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 %import "python/swig/drain.i" +%import "python/swig/serialize.i" ''') @classmethod -- cgit v1.2.3