summaryrefslogtreecommitdiff
path: root/arm-semi.c
diff options
context:
space:
mode:
Diffstat (limited to 'arm-semi.c')
-rw-r--r--arm-semi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arm-semi.c b/arm-semi.c
index 5239ffc8c4..0687b03006 100644
--- a/arm-semi.c
+++ b/arm-semi.c
@@ -459,6 +459,7 @@ uint32_t do_arm_semihosting(CPUState *env)
return 0;
}
case SYS_EXIT:
+ gdb_exit(env, 0);
exit(0);
default:
fprintf(stderr, "qemu: Unsupported SemiHosting SWI 0x%02x\n", nr);