Received: from eggs.gnu.org ([2001:4830:134:3::10]:57392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNj9R-0000Es-Fb for qemu-devel@nongnu.org; Wed, 12 Mar 2014 09:24:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNj9P-0004S1-Sk for qemu-devel@nongnu.org; Wed, 12 Mar 2014 09:24:53 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:46677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNj9P-0004Rj-Mh for qemu-devel@nongnu.org; Wed, 12 Mar 2014 09:24:51 -0400 From: Peter Maydell Date: Wed, 12 Mar 2014 13:06:01 +0000 Message-Id: <1394629561-11813-3-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1394629561-11813-1-git-send-email-peter.maydell@linaro.org> References: <1394629561-11813-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 2/2] linux-user: Don't return uninitialized value for atomic_barrier syscall List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio , patches@linaro.org QEMU's implementation of the m68k atomic_barrier syscall, like the kernel's, is just a no-op. However we still need to return a result code from it. Signed-off-by: Peter Maydell --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e2c10cc..19317eb 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -9142,6 +9142,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, case TARGET_NR_atomic_barrier: { /* Like the kernel implementation and the qemu arm barrier, no-op this? */ + ret = 0; break; } #endif -- 1.9.0