aboutsummaryrefslogtreecommitdiff
path: root/m68k-semi.c
diff options
context:
space:
mode:
Diffstat (limited to 'm68k-semi.c')
-rw-r--r--m68k-semi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/m68k-semi.c b/m68k-semi.c
index 48e3bd38be..d16bc671c6 100644
--- a/m68k-semi.c
+++ b/m68k-semi.c
@@ -172,6 +172,7 @@ void do_m68k_semihosting(CPUM68KState *env, int nr)
args = env->dregs[1];
switch (nr) {
case HOSTED_EXIT:
+ gdb_exit(env, env->dregs[0]);
exit(env->dregs[0]);
case HOSTED_OPEN:
if (use_gdb_syscalls()) {