python: Apply Black formatter to Python files

The command executed was `black src configs tests util`.

Change-Id: I8dfaa6ab04658fea37618127d6ac19270028d771
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/47024
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Bobby R. Bruce
2022-07-05 11:02:25 -07:00
committed by Giacomo Travaglini
parent 1cfaa8da83
commit 787204c92d
980 changed files with 35668 additions and 22233 deletions

View File

@@ -36,7 +36,8 @@ import argparse
import m5
from m5.objects import *
from m5.util import *
addToPath('../')
addToPath("../")
from common import MemConfig
from common import HMC
@@ -48,10 +49,10 @@ options = parser.parse_args()
# create the system we are going to simulate
system = System()
# use timing mode for the interaction between requestor-responder ports
system.mem_mode = 'timing'
system.mem_mode = "timing"
# set the clock frequency of the system
clk = '1GHz'
vd = VoltageDomain(voltage='1V')
clk = "1GHz"
vd = VoltageDomain(voltage="1V")
system.clk_domain = SrcClockDomain(clock=clk, voltage_domain=vd)
# create a simple CPU
system.cpu = TimingSimpleCPU()
@@ -66,9 +67,9 @@ system.cpu.createInterruptController()
# functional-only port to allow the system to read and write memory.
system.system_port = system.membus.cpu_side_ports
# get ISA for the binary to run.
isa = str(m5.defines.buildEnv['TARGET_ISA']).lower()
isa = str(m5.defines.buildEnv["TARGET_ISA"]).lower()
# run 'hello' and use the compiled ISA to find the binary
binary = 'tests/test-progs/hello/bin/' + isa + '/linux/hello'
binary = "tests/test-progs/hello/bin/" + isa + "/linux/hello"
# create a process for a simple "Hello World" application
process = Process()
# cmd is a list which begins with the executable (like argv)