aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2013-07-29 11:31:49 +0100
committerRiku Voipio <riku.voipio@linaro.org>2013-07-29 14:42:08 +0300
commit1a1984a4145680c7e5c7408d1669093d3d4f0fae (patch)
tree772a74246d01490ad9cdf304b3a8ed568d08c28a
parent927f9c02cc42ee8ee715db7940dd0687b3a7a52b (diff)
downloadqemu-m68k-linux-user.tar.gz
linux-user: Return success from m68k set_thread_area syscallm68k-linux-user
The m68k set_thread_area syscall implementation failed to set the return value. Correctly set it zero, since this syscall will always succeed. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
-rw-r--r--linux-user/syscall.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 112e3b959f..b7897b2587 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -8523,6 +8523,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
{
TaskState *ts = ((CPUArchState *)cpu_env)->opaque;
ts->tp_value = arg1;
+ ret = 0;
break;
}
#else