misc: Use python f-strings for string formatting
This patch has been generated by applying flynt to the gem5 repo (ext has been excluded) JIRA: https://gem5.atlassian.net/browse/GEM5-831 Change-Id: I0935db6223d5426b99515959bde78e374cbadb04 Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/68957 Maintainer: Bobby Bruce <bbruce@ucdavis.edu> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
This commit is contained in:
@@ -330,7 +330,7 @@ def make_cache_level(ncaches, prototypes, level, next_cache):
|
||||
make_cache_level(cachespec, cache_proto, len(cachespec), None)
|
||||
|
||||
# Connect the lowest level crossbar to the memory
|
||||
last_subsys = getattr(system, "l%dsubsys0" % len(cachespec))
|
||||
last_subsys = getattr(system, f"l{len(cachespec)}subsys0")
|
||||
last_subsys.xbar.mem_side_ports = system.physmem.port
|
||||
last_subsys.xbar.point_of_coherency = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user