misc: Run pre-commit run on all files in repo
The following command was run: ``` pre-commit run --all-files ``` This ensures all the files in the repository are formatted to pass our checks. Change-Id: Ia2fe3529a50ad925d1076a612d60a4280adc40de Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/62572 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
This commit is contained in:
committed by
Bobby Bruce
parent
64add0e04d
commit
2bc5a8b71a
@@ -52,7 +52,7 @@ def define_options(parser):
|
||||
|
||||
|
||||
def read_config_file(file):
|
||||
""" Read file as a module and return it """
|
||||
"""Read file as a module and return it"""
|
||||
import types
|
||||
import importlib.machinery
|
||||
|
||||
|
||||
@@ -200,10 +200,10 @@ def setup_memory_controllers(system, ruby, dir_cntrls, options):
|
||||
|
||||
|
||||
def create_topology(controllers, options):
|
||||
""" Called from create_system in configs/ruby/<protocol>.py
|
||||
Must return an object which is a subclass of BaseTopology
|
||||
found in configs/topologies/BaseTopology.py
|
||||
This is a wrapper for the legacy topologies.
|
||||
"""Called from create_system in configs/ruby/<protocol>.py
|
||||
Must return an object which is a subclass of BaseTopology
|
||||
found in configs/topologies/BaseTopology.py
|
||||
This is a wrapper for the legacy topologies.
|
||||
"""
|
||||
exec("import topologies.%s as Topo" % options.topology)
|
||||
topology = eval("Topo.%s(controllers)" % options.topology)
|
||||
|
||||
Reference in New Issue
Block a user