configs: Add --param to starter_se

This commit adds the --param option to the starter_se
configuration script for the Arm ISA. This is in order
to support attaching remote debugger sessions.

Change-Id: I2d8cc9f677f731948872003cca6066d1072ad570
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
This commit is contained in:
Tiberiu Bucur
2024-08-20 13:58:20 +01:00
parent ce4c2c6495
commit fe6ef662d1

View File

@@ -1,4 +1,4 @@
# Copyright (c) 2016-2017, 2022-2023 Arm Limited
# Copyright (c) 2016-2017, 2022-2024 Arm Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
@@ -203,6 +203,19 @@ def main():
default="stdoutput",
help="Destination for the Tarmac trace output. [Default: stdoutput]",
)
parser.add_argument(
"-P",
"--param",
action="append",
default=[],
help="Set a SimObject parameter relative to the root node. "
"An extended Python multi range slicing syntax can be used "
"for arrays. For example: "
"'system.cpu[0,1,3:8:2].max_insts_all_threads = 42' "
"sets max_insts_all_threads for cpus 0, 1, 3, 5 and 7 "
"Direct parameters of the root object are not accessible, "
"only parameters of its children.",
)
args = parser.parse_args()
@@ -215,6 +228,7 @@ def main():
# Populate the root node with a system. A system corresponds to a
# single node with shared memory.
root.system = create(args)
root.apply_config(args.param)
# Instantiate the C++ object hierarchy. After this point,
# SimObjects can't be instantiated anymore.