mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
learn more formally arm 32 bit CP registers, fix QEMU baremetal run with cli args
This commit is contained in:
3
run
3
run
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user