summaryrefslogtreecommitdiff
path: root/ext/systemc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/systemc')
-rw-r--r--ext/systemc/SConscript6
-rw-r--r--ext/systemc/src/sysc/kernel/SConscript.sc4
-rw-r--r--ext/systemc/src/sysc/qt/SConscript.sc6
3 files changed, 11 insertions, 5 deletions
diff --git a/ext/systemc/SConscript b/ext/systemc/SConscript
index c2e67ae1c..cb0c61db4 100644
--- a/ext/systemc/SConscript
+++ b/ext/systemc/SConscript
@@ -23,6 +23,8 @@
# Authors: Christian Menard
# Matthias Jung
+from __future__ import print_function
+
import os
from m5.util.terminal import get_termcap
@@ -57,8 +59,8 @@ elif conf.CheckDeclaration('__x86_64__'):
arch = 'x86_64'
else:
termcap = get_termcap(GetOption('use_colors'))
- print termcap.Yellow + termcap.Bold + \
- "Warning: Unrecognized architecture for systemc." + termcap.Normal
+ print(termcap.Yellow + termcap.Bold +
+ "Warning: Unrecognized architecture for systemc." + termcap.Normal)
conf.Finish()
diff --git a/ext/systemc/src/sysc/kernel/SConscript.sc b/ext/systemc/src/sysc/kernel/SConscript.sc
index 0db22a6ad..ac79c2fb5 100644
--- a/ext/systemc/src/sysc/kernel/SConscript.sc
+++ b/ext/systemc/src/sysc/kernel/SConscript.sc
@@ -23,6 +23,8 @@
# Authors: Christian Menard
# Matthias Jung
+from __future__ import print_function
+
Import('systemc', 'SystemCSource')
SystemCSource(
@@ -63,5 +65,5 @@ elif coroutine_lib == 'pthreads':
elif coroutine_lib == 'fiber':
SystemCSource('sc_cor_fiber.cpp')
else:
- print 'Unrecognized threading implementation \'%s\'' % coroutine_lib
+ print('Unrecognized threading implementation \'%s\'' % coroutine_lib)
Exit(1)
diff --git a/ext/systemc/src/sysc/qt/SConscript.sc b/ext/systemc/src/sysc/qt/SConscript.sc
index 5ffb0d3aa..c2e8baf8e 100644
--- a/ext/systemc/src/sysc/qt/SConscript.sc
+++ b/ext/systemc/src/sysc/qt/SConscript.sc
@@ -23,6 +23,8 @@
# Authors: Christian Menard
# Matthias Jung
+from __future__ import print_function
+
import os
Import('systemc', 'SystemCSource')
@@ -32,11 +34,11 @@ if systemc['COROUTINE_LIB'] == 'qt':
qt_arch = systemc.get('QT_ARCH', None)
if not qt_arch:
- print 'No architecture selected for the QT coroutine library.'
+ print('No architecture selected for the QT coroutine library.')
Exit(1)
if qt_arch in ('i386', 'iX86_64'):
SystemCSource(os.path.join('md', qt_arch + '.s'))
else:
- print 'Don\'t know what to do for QT arch %s.' % qt_arch
+ print('Don\'t know what to do for QT arch %s.' % qt_arch)
Exit(1)