python: Run Black on configs/example/components-library
Change-Id: Id0c2151a624737f3e035fd3ae14602c144219675 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/49307 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com>
This commit is contained in:
@@ -103,7 +103,7 @@ parser.add_argument(
|
||||
type=int,
|
||||
required=False,
|
||||
help="The tick to exit the simulation. Note: using this may make the "
|
||||
"selected boot-type selection pointless."
|
||||
"selected boot-type selection pointless.",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
|
||||
@@ -164,7 +164,10 @@ else:
|
||||
print("Ran a total of", m5.curTick() / 1e12, "simulated seconds")
|
||||
print(
|
||||
"Total wallclock time: {}s, {} min".format(
|
||||
(time.time() - globalStart, (time.time() - globalStart) / 60)
|
||||
(
|
||||
time.time() - globalStart,
|
||||
(time.time() - globalStart) / 60,
|
||||
)
|
||||
)
|
||||
)
|
||||
exit()
|
||||
@@ -195,7 +198,8 @@ else:
|
||||
print("Ran a total of", m5.curTick() / 1e12, "simulated seconds")
|
||||
print(
|
||||
"Total wallclock time: {}s, {} min".format(
|
||||
time.time() - globalStart, (time.time() - globalStart) / 60
|
||||
time.time() - globalStart,
|
||||
(time.time() - globalStart) / 60,
|
||||
)
|
||||
)
|
||||
exit()
|
||||
|
||||
@@ -66,11 +66,9 @@ import shutil
|
||||
|
||||
# Run a check to ensure the right version of gem5 is being used.
|
||||
if get_runtime_isa() != ISA.RISCV:
|
||||
raise EnvironmentError(
|
||||
"The riscv_fs.py should be run with RISCV ISA."
|
||||
)
|
||||
raise EnvironmentError("The riscv_fs.py should be run with RISCV ISA.")
|
||||
|
||||
from components_library.cachehierarchies.classic. \
|
||||
from components_library.cachehierarchies.classic.\
|
||||
private_l1_private_l2_cache_hierarchy import (
|
||||
PrivateL1PrivateL2CacheHierarchy,
|
||||
)
|
||||
@@ -78,9 +76,7 @@ from components_library.boards.riscv_board import RiscvBoard
|
||||
|
||||
# Setup the cache hierarchy. PrivateL1PrivateL2 and NoCache have been tested.
|
||||
cache_hierarchy = PrivateL1PrivateL2CacheHierarchy(
|
||||
l1d_size='32KiB',
|
||||
l1i_size='32KiB',
|
||||
l2_size='512KiB'
|
||||
l1d_size="32KiB", l1i_size="32KiB", l2_size="512KiB"
|
||||
)
|
||||
|
||||
# Setup the system memory.
|
||||
|
||||
@@ -77,10 +77,12 @@ motherboard.connect_things()
|
||||
|
||||
# Set the workload
|
||||
thispath = os.path.dirname(os.path.realpath(__file__))
|
||||
binary = CustomResource(os.path.join(
|
||||
thispath,
|
||||
"../../../tests/test-progs/hello/bin/x86/linux/hello"
|
||||
))
|
||||
binary = CustomResource(
|
||||
os.path.join(
|
||||
thispath,
|
||||
"../../../tests/test-progs/hello/bin/x86/linux/hello",
|
||||
)
|
||||
)
|
||||
motherboard.set_workload(binary)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user