]> git.proxmox.com Git - qemu.git/commitdiff
linux-user: Return success from m68k set_thread_area syscall
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 29 Jul 2013 10:31:49 +0000 (11:31 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 30 Jul 2013 00:56:52 +0000 (19:56 -0500)
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>
Message-id: 1375093909-13653-1-git-send-email-peter.maydell@linaro.org
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
linux-user/syscall.c

index 3f6db4b0d128d6d178443b058505fc0546895d65..f986548c2dc62154a862ec90e33eaafa12d5e78b 100644 (file)
@@ -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