aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arm-semi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arm-semi.c b/arm-semi.c
index 1cf220388..cd77d1da0 100644
--- a/arm-semi.c
+++ b/arm-semi.c
@@ -362,6 +362,7 @@ uint32_t do_arm_semihosting(CPUState *env)
return (uint32_t)-1;
ret = set_swi_errno(ts, system(s));
unlock_user(s, ARG(0), 0);
+ return ret;
}
case SYS_ERRNO:
#ifdef CONFIG_USER_ONLY