summaryrefslogtreecommitdiff
path: root/src/python/m5/util/convert.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/m5/util/convert.py')
-rw-r--r--src/python/m5/util/convert.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/python/m5/util/convert.py b/src/python/m5/util/convert.py
index acd1a2448..76ac509dc 100644
--- a/src/python/m5/util/convert.py
+++ b/src/python/m5/util/convert.py
@@ -28,6 +28,10 @@
# Authors: Nathan Binkert
# Gabe Black
+import six
+if six.PY3:
+ long = int
+
# metric prefixes
atto = 1.0e-18
femto = 1.0e-15