scons: Switch from the print statement to the print function.
Starting with version 3, scons imposes using the print function instead of the print statement in code it processes. To get things building again, this change moves all python code within gem5 to use the function version. Another change by another author separately made this same change to the site_tools and site_init.py files. Change-Id: I2de7dc3b1be756baad6f60574c47c8b7e80ea3b0 Reviewed-on: https://gem5-review.googlesource.com/8761 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
@@ -42,6 +42,8 @@
|
||||
# Andreas Hansson
|
||||
# Glenn Bergmans
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
|
||||
from m5.SimObject import *
|
||||
@@ -200,8 +202,8 @@ class BaseCPU(MemObject):
|
||||
[], "Interrupt Controller")
|
||||
isa = VectorParam.RiscvISA([], "ISA instance")
|
||||
else:
|
||||
print "Don't know what TLB to use for ISA %s" % \
|
||||
buildEnv['TARGET_ISA']
|
||||
print("Don't know what TLB to use for ISA %s" %
|
||||
buildEnv['TARGET_ISA'])
|
||||
sys.exit(1)
|
||||
|
||||
max_insts_all_threads = Param.Counter(0,
|
||||
@@ -260,8 +262,8 @@ class BaseCPU(MemObject):
|
||||
self.interrupts = \
|
||||
[RiscvInterrupts() for i in xrange(self.numThreads)]
|
||||
else:
|
||||
print "Don't know what Interrupt Controller to use for ISA %s" % \
|
||||
buildEnv['TARGET_ISA']
|
||||
print("Don't know what Interrupt Controller to use for ISA %s" %
|
||||
buildEnv['TARGET_ISA'])
|
||||
sys.exit(1)
|
||||
|
||||
def connectCachedPorts(self, bus):
|
||||
|
||||
Reference in New Issue
Block a user