config: Switch from the print statement to the print function.

Change-Id: I701fa58cfcfa2767ce9ad24da314a053889878d0
Reviewed-on: https://gem5-review.googlesource.com/8762
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
Gabe Black
2018-03-05 22:51:34 -08:00
parent 0bb50e6745
commit 659900aedd
39 changed files with 273 additions and 194 deletions

View File

@@ -41,6 +41,8 @@
# Authors: Ali Saidi
# Brad Beckmann
from __future__ import print_function
import optparse
import sys
@@ -74,8 +76,8 @@ def is_kvm_cpu(cpu_class):
def cmd_line_template():
if options.command_line and options.command_line_file:
print "Error: --command-line and --command-line-file are " \
"mutually exclusive"
print("Error: --command-line and --command-line-file are "
"mutually exclusive")
sys.exit(1)
if options.command_line:
return options.command_line
@@ -310,7 +312,7 @@ if '--ruby' in sys.argv:
(options, args) = parser.parse_args()
if args:
print "Error: script doesn't take any positional arguments"
print("Error: script doesn't take any positional arguments")
sys.exit(1)
# system under test can be any CPU
@@ -323,8 +325,8 @@ if options.benchmark:
try:
bm = Benchmarks[options.benchmark]
except KeyError:
print "Error benchmark %s has not been defined." % options.benchmark
print "Valid benchmarks are: %s" % DefinedBenchmarks
print("Error benchmark %s has not been defined." % options.benchmark)
print("Valid benchmarks are: %s" % DefinedBenchmarks)
sys.exit(1)
else:
if options.dual:
@@ -357,7 +359,7 @@ elif len(bm) == 1 and options.dist:
elif len(bm) == 1:
root = Root(full_system=True, system=test_sys)
else:
print "Error I don't know how to create more than 2 systems."
print("Error I don't know how to create more than 2 systems.")
sys.exit(1)
if options.timesync: