Bobby R. Bruce has submitted this change. ( https://gem5-review.googlesource.com/c/public/gem5/+/49307 )


11 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
Change subject: python: Run Black on configs/example/components-library
......................................................................

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 <[email protected]>
Reviewed-by: Jason Lowe-Power <[email protected]>
Maintainer: Jason Lowe-Power <[email protected]>
---
M configs/example/components-library/boot_exit_disk_run.py
M configs/example/components-library/parsec_disk_run.py
M configs/example/components-library/riscv_fs.py
M configs/example/components-library/simple_binary_run.py
4 files changed, 16 insertions(+), 14 deletions(-)

Approvals:
  Jason Lowe-Power: Looks good to me, approved; Looks good to me, approved
  kokoro: Regressions pass




diff --git a/configs/example/components-library/boot_exit_disk_run.py b/configs/example/components-library/boot_exit_disk_run.py
index 774f0dc..0242fb5 100644
--- a/configs/example/components-library/boot_exit_disk_run.py
+++ b/configs/example/components-library/boot_exit_disk_run.py
@@ -103,7 +103,7 @@
     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(
diff --git a/configs/example/components-library/parsec_disk_run.py b/configs/example/components-library/parsec_disk_run.py
index 1570d1c..e9ec1f7 100644
--- a/configs/example/components-library/parsec_disk_run.py
+++ b/configs/example/components-library/parsec_disk_run.py
@@ -164,7 +164,10 @@
     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 @@
     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()
diff --git a/configs/example/components-library/riscv_fs.py b/configs/example/components-library/riscv_fs.py
index 10692f6..bb3b3c0 100644
--- a/configs/example/components-library/riscv_fs.py
+++ b/configs/example/components-library/riscv_fs.py
@@ -66,11 +66,9 @@

 # 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 @@

# 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.
diff --git a/configs/example/components-library/simple_binary_run.py b/configs/example/components-library/simple_binary_run.py
index 212c5cd..25afb6a 100644
--- a/configs/example/components-library/simple_binary_run.py
+++ b/configs/example/components-library/simple_binary_run.py
@@ -77,10 +77,12 @@

 # 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)



--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/49307
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Id0c2151a624737f3e035fd3ae14602c144219675
Gerrit-Change-Number: 49307
Gerrit-PatchSet: 15
Gerrit-Owner: Bobby R. Bruce <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Bobby R. Bruce <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to