Skip to content

Commit 15313ff

Browse files
committed
Set -monitor none for qemu-system-arm to enable abort via CTRL-C
Previously, you couldn't abort (the emulation step in) ``` EXTRA_MAKEFILE=test/baremetal/platform/m55-an547/platform.mk tests func ``` via CTRL-C/SIGINT. It seems that this is related to qemu-system-arm using CTRL-C/SIGINT for something related to the monitor console. This commit adds `-monitor none` to the `qemu-system-arm` invocation to disable the monitor and free up CTRL-C for interruption of the emulation. Signed-off-by: Hanno Becker <[email protected]>
1 parent d4896b5 commit 15313ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/baremetal/platform/m55-an547/exec_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def err(msg, **kwargs):
3434
fd.write(binargs)
3535

3636
try:
37-
qemu_cmd = f"qemu-system-arm -M mps3-an547 -nographic -semihosting -kernel {binpath} -device loader,file={args_file},addr=0x{cmdline_offset:x}".split()
37+
qemu_cmd = f"qemu-system-arm -M mps3-an547 -monitor none -nographic -semihosting -kernel {binpath} -device loader,file={args_file},addr=0x{cmdline_offset:x}".split()
3838
result = subprocess.run(qemu_cmd, encoding="utf-8", capture_output=True)
3939
finally:
4040
os.unlink(args_file)

0 commit comments

Comments
 (0)