From: Peter Maydell Date: Wed, 12 Mar 2014 13:06:01 +0000 (+0000) Subject: linux-user: Don't return uninitialized value for atomic_barrier syscall X-Git-Tag: v2.0.0-rc1~39^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3b899ea7d405dc7634ac629aa7b0e7639d506d9f;p=thirdparty%2Fqemu.git linux-user: Don't return uninitialized value for atomic_barrier syscall 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 Signed-off-by: Riku Voipio --- diff --git a/linux-user/syscall.c b/linux-user/syscall.c index ffc11de4b74..b5eadb14b09 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -9148,6 +9148,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