Giacomo Travaglini has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/57301 )
Change subject: configs: Add --enable-dvm CL option to CHI configs
......................................................................
configs: Add --enable-dvm CL option to CHI configs
By using the "--enable-dvm" command line option it is possible
to issue DVM messages from Arm CPUs
JIRA: https://gem5.atlassian.net/browse/GEM5-1097
Change-Id: I0a2b683ad3403590515bd406e241b66961cee964
Signed-off-by: Giacomo Travaglini <giacomo.travagl...@arm.com>
---
M configs/ruby/CHI.py
1 file changed, 23 insertions(+), 0 deletions(-)
diff --git a/configs/ruby/CHI.py b/configs/ruby/CHI.py
index 7cac5ed..c94dc94 100644
--- a/configs/ruby/CHI.py
+++ b/configs/ruby/CHI.py
@@ -43,6 +43,7 @@
default=None,
help="NoC config. parameters and bindings. "
"Required for CustomMesh topology")
+ parser.add_argument("--enable-dvm", default=False, action="store_true")
def read_config_file(file):
''' Read file as a module and return it '''
@@ -65,6 +66,13 @@
if options.num_l3caches < 1:
m5.fatal('--num-l3caches must be at least 1')
+ if full_system and options.enable_dvm:
+ if len(cpus) <= 1:
+ m5.fatal("--enable-dvm can't be used with a single CPU")
+ for cpu in cpus:
+ for decoder in cpu.decoder:
+ decoder.dvm_enabled = True
+
# read specialized classes from config file if provided
if options.chi_config:
chi_defs = read_config_file(options.chi_config)
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/57301
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: I0a2b683ad3403590515bd406e241b66961cee964
Gerrit-Change-Number: 57301
Gerrit-PatchSet: 1
Gerrit-Owner: Giacomo Travaglini <giacomo.travagl...@arm.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s