summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/python')
-rw-r--r--src/python/swig/core.i2
-rw-r--r--src/python/swig/event.i5
-rw-r--r--src/python/swig/pyobject.hh2
-rw-r--r--src/python/swig/sim_object.i1
4 files changed, 6 insertions, 4 deletions
diff --git a/src/python/swig/core.i b/src/python/swig/core.i
index eefe106a4..1ff2d9fe5 100644
--- a/src/python/swig/core.i
+++ b/src/python/swig/core.i
@@ -36,8 +36,8 @@
#include "base/misc.hh"
#include "base/socket.hh"
-#include "sim/core.hh"
#include "base/types.hh"
+#include "sim/core.hh"
#include "sim/startup.hh"
extern const char *compileDate;
diff --git a/src/python/swig/event.i b/src/python/swig/event.i
index c09f12016..99fde2d5b 100644
--- a/src/python/swig/event.i
+++ b/src/python/swig/event.i
@@ -31,8 +31,8 @@
%module event
%{
-#include "python/swig/pyevent.hh"
#include "base/types.hh"
+#include "python/swig/pyevent.hh"
#include "sim/eventq.hh"
#include "sim/sim_events.hh"
#include "sim/sim_exit.hh"
@@ -75,9 +75,10 @@
%include "stdint.i"
%include "std_string.i"
+
%include "base/types.hh"
-%include "sim/eventq.hh"
%include "python/swig/pyevent.hh"
+%include "sim/eventq.hh"
struct CountedDrainEvent : public Event
{
diff --git a/src/python/swig/pyobject.hh b/src/python/swig/pyobject.hh
index d11dc323c..bc3177f6f 100644
--- a/src/python/swig/pyobject.hh
+++ b/src/python/swig/pyobject.hh
@@ -30,8 +30,8 @@
#include <Python.h>
-#include "cpu/base.hh"
#include "base/types.hh"
+#include "cpu/base.hh"
#include "sim/serialize.hh"
#include "sim/sim_object.hh"
#include "sim/system.hh"
diff --git a/src/python/swig/sim_object.i b/src/python/swig/sim_object.i
index 840aea998..c98e44ec2 100644
--- a/src/python/swig/sim_object.i
+++ b/src/python/swig/sim_object.i
@@ -37,6 +37,7 @@
// import these files for SWIG to wrap
%include "stdint.i"
%include "std_string.i"
+
%include "base/types.hh"
class BaseCPU;