configs: Add Tarmac tracing option to the simple Arm configs
gem5 supports Tarmac trace generation for Arm simulations, but there are no examples of how to use this feature. This patch adds a `--tarmac-gen` option to three of the simple Arm configs. Tarmac generation is useful for out-of-the-box users, and this patch also provides an example of how to use the Tarmac generation feature. Change-Id: I0d3c523b5c0bb6d94de93bc502e4451622fb635d Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/69684 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -129,7 +129,13 @@ def create(args):
|
||||
# Add CPU clusters to the system
|
||||
system.cpu_cluster = [
|
||||
devices.ArmCpuCluster(
|
||||
system, args.num_cores, args.cpu_freq, "1.0V", *cpu_types[args.cpu]
|
||||
system,
|
||||
args.num_cores,
|
||||
args.cpu_freq,
|
||||
"1.0V",
|
||||
*cpu_types[args.cpu],
|
||||
tarmac_gen=args.tarmac_gen,
|
||||
tarmac_dest=args.tarmac_dest,
|
||||
)
|
||||
]
|
||||
|
||||
@@ -257,6 +263,17 @@ def main():
|
||||
default="2GB",
|
||||
help="Specify the physical memory size",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--tarmac-gen",
|
||||
action="store_true",
|
||||
help="Write a Tarmac trace.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--tarmac-dest",
|
||||
choices=TarmacDump.vals,
|
||||
default="stdoutput",
|
||||
help="Destination for the Tarmac trace output. [Default: stdoutput]",
|
||||
)
|
||||
parser.add_argument("--checkpoint", action="store_true")
|
||||
parser.add_argument("--restore", type=str, default=None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user