summaryrefslogtreecommitdiff
path: root/src/python/swig/event.i
diff options
context:
space:
mode:
authorAndreas Sandberg <Andreas.Sandberg@ARM.com>2012-11-02 11:32:02 -0500
committerAndreas Sandberg <Andreas.Sandberg@ARM.com>2012-11-02 11:32:02 -0500
commitaae6134b5487e02a90445d1b2146583740658b09 (patch)
tree95253a9db555dcfcac23c7875ce5003c12f75cde /src/python/swig/event.i
parentdc01535c7e800189c4cb46cab470f4b958be94c7 (diff)
downloadgem5-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/swig/event.i')
-rw-r--r--src/python/swig/event.i4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/swig/event.i b/src/python/swig/event.i
index 766dc2769..1f7740eab 100644
--- a/src/python/swig/event.i
+++ b/src/python/swig/event.i
@@ -39,6 +39,8 @@
#include "sim/simulate.hh"
%}
+%import "python/swig/serialize.i"
+
#pragma SWIG nowarn=350,351
%extend EventQueue {
@@ -73,8 +75,6 @@
%include <std_string.i>
%include <stdint.i>
-%import "sim/serialize.hh"
-
%include "base/types.hh"
%include "sim/eventq.hh"