gem5: use --param to automate aarch64 baremetal BS, oh yeah

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-10-28 00:00:00 +00:00
parent 0edf7575cd
commit ceb64ab8e1
3 changed files with 16 additions and 28 deletions

4
run
View File

@@ -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]