mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
gem5: use --param to automate aarch64 baremetal BS, oh yeah
This commit is contained in:
4
run
4
run
@@ -167,6 +167,10 @@ def main(args, extra_args=None):
|
||||
]
|
||||
if not args.baremetal is None:
|
||||
cmd.append('--bare-metal')
|
||||
if args.arch == 'aarch64':
|
||||
# https://stackoverflow.com/questions/43682311/uart-communication-in-gem5-with-arm-bare-metal/50983650#50983650
|
||||
cmd.extend(['--param', 'system.highest_el_is_64 = True'])
|
||||
cmd.extend(['--param', 'system.auto_reset_addr_64 = True'])
|
||||
elif args.gem5_script == 'biglittle':
|
||||
if args.gem5_restore is not None:
|
||||
cpt_dir = common.gem_list_checkpoint_dirs()[-args.gem5_restore]
|
||||
|
||||
Reference in New Issue
Block a user