Skip to content

Commit edb11ee

Browse files
AlexJones0luismarques
authored andcommitted
[qemu,bazel] Fix JTAG disconnection quitting QEMU
Signed-off-by: Alex Jones <[email protected]>
1 parent 3e5a19b commit edb11ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rules/opentitan/qemu.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,11 @@ def _test_dispatch(ctx, exec_env, firmware):
518518
qemu_args += ["-global", "ot-uart.oversample-break=true"]
519519
qemu_args += ["-global", "ot-uart.toggle-break=true"]
520520

521+
# QEMU will by default interpret quit commands over JTAG to the TAP Ctrls
522+
# as signals to exit VM execution. We want to be able to disconnect from
523+
# JTAG without stopping execution completely for tests.
524+
qemu_args += ["-global", "tap-ctrl-rbb.quit=false"]
525+
521526
# Add parameter-specified globals.
522527
if param["globals"]:
523528
globals = json.decode(param["globals"])

0 commit comments

Comments
 (0)