diff options
author | Gabe Black <gabeblack@google.com> | 2018-03-05 22:51:34 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-03-06 23:39:43 +0000 |
commit | 659900aedd1b4fc69b61b5dbaee39dba26848637 (patch) | |
tree | 586dcfc17855c54a4985f596a145730cdeab7309 /configs/example/arm/starter_se.py | |
parent | 0bb50e6745b35c785c4d8051eb43f6bc419fb924 (diff) | |
download | gem5-659900aedd1b4fc69b61b5dbaee39dba26848637.tar.xz |
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>
Diffstat (limited to 'configs/example/arm/starter_se.py')
-rw-r--r-- | configs/example/arm/starter_se.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/configs/example/arm/starter_se.py b/configs/example/arm/starter_se.py index 902e6e49a..ef218d978 100644 --- a/configs/example/arm/starter_se.py +++ b/configs/example/arm/starter_se.py @@ -43,6 +43,8 @@ Research Starter Kit on System Modeling. More information can be found at: http://www.arm.com/ResearchEnablement/SystemModeling """ +from __future__ import print_function + import os import m5 from m5.util import addToPath @@ -145,7 +147,7 @@ def get_processes(cmd): process = Process(pid=100 + idx, cwd=cwd, cmd=argv, executable=argv[0]) - print "info: %d. command and arguments: %s" % (idx + 1, process.cmd) + print("info: %d. command and arguments: %s" % (idx + 1, process.cmd)) multiprocesses.append(process) return multiprocesses @@ -168,8 +170,8 @@ def create(args): # that we can pass to gem5. processes = get_processes(args.commands_to_run) if len(processes) != args.num_cores: - print "Error: Cannot map %d command(s) onto %d " \ - "CPU(s)" % (len(processes), args.num_cores) + print("Error: Cannot map %d command(s) onto %d CPU(s)" % + (len(processes), args.num_cores)) sys.exit(1) # Assign one workload to each CPU @@ -225,7 +227,7 @@ def main(): # Print the reason for the simulation exit. Some exit codes are # requests for service (e.g., checkpoints) from the simulation # script. We'll just ignore them here and exit. - print event.getCause(), " @ ", m5.curTick() + print(event.getCause(), " @ ", m5.curTick()) sys.exit(event.getCode()) |