learn more formally arm 32 bit CP registers, fix QEMU baremetal run with cli args

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-06-16 02:00:01 +00:00
parent 7d32b26fde
commit da40e84075
4 changed files with 66 additions and 1 deletions

3
run
View File

@@ -502,6 +502,8 @@ Extra options to append at the end of the emulator command line.
))
argv_addr_cur += len(arg) + 1
baremetal_cli_path = os.path.join(self.env['run_dir'], 'baremetal_cli.raw')
if self.env['emulator'] == 'qemu':
self.make_run_dirs()
with open(baremetal_cli_path, 'wb') as f:
f.write(struct.pack('<{}'.format(self.python_struct_int_format(self.env['int_size'])), len(cli_args)))
f.write(b''.join(argv_addr_data))
@@ -702,7 +704,6 @@ Extra options to append at the end of the emulator command line.
cpu = 'max'
else:
extra_emulator_args.extend(extra_qemu_args)
self.make_run_dirs()
if debug_vm:
serial_monitor = []
else: