summaryrefslogtreecommitdiff
path: root/src/python/swig/range.i
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/swig/range.i')
-rw-r--r--src/python/swig/range.i12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/python/swig/range.i b/src/python/swig/range.i
index 659bde8d7..f0cf43be4 100644
--- a/src/python/swig/range.i
+++ b/src/python/swig/range.i
@@ -28,10 +28,18 @@
* Authors: Nathan Binkert
*/
-%rename(assign) *::operator=;
+%module(package="m5.internal") range
-%include "base/range.hh"
+%{
+#include "base/range.hh"
+#include "base/types.hh"
+%}
+
+%include "stdint.i"
%include "base/types.hh"
+%rename(assign) *::operator=;
+%include "base/range.hh"
+
%template(AddrRange) Range<Addr>;
%template(TickRange) Range<Tick>;