Received: from eggs.gnu.org ([2001:4830:134:3::10]:53618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3kkJ-0004Uk-Ec for qemu-devel@nongnu.org; Mon, 29 Jul 2013 06:32:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3kkG-00031V-OA for qemu-devel@nongnu.org; Mon, 29 Jul 2013 06:32:07 -0400 Received: from 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:1d0::1]:58999 helo=mnementh.archaic.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3kkG-00030o-HJ for qemu-devel@nongnu.org; Mon, 29 Jul 2013 06:32:04 -0400 From: Peter Maydell Date: Mon, 29 Jul 2013 11:31:49 +0100 Message-Id: <1375093909-13653-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH for-1.6] linux-user: Return success from m68k set_thread_area syscall List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Riku Voipio , Laurent Vivier , patches@linaro.org 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 --- Oops. Spotted by clang. linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 3f6db4b..f986548 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 -- 1.7.9.5