diff --git a/arm-semi.c b/arm-semi.c index 1cf22038872b7219cb5b306074a6885c5148d2fc..cd77d1da0f0ad11e50cf47627b73489765f55cd3 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