summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Maydell2014-03-12 14:06:01 +0100
committerRiku Voipio2014-03-17 10:44:31 +0100
commit3b899ea7d405dc7634ac629aa7b0e7639d506d9f (patch)
tree5dca31d1b35a86f66050c62cde02b458f32feab7
parentlinux-user/signal.c: Correct error path for AArch64 do_rt_sigreturn (diff)
downloadqemu-3b899ea7d405dc7634ac629aa7b0e7639d506d9f.tar.gz
qemu-3b899ea7d405dc7634ac629aa7b0e7639d506d9f.tar.xz
qemu-3b899ea7d405dc7634ac629aa7b0e7639d506d9f.zip
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 <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 ffc11de4b7..b5eadb14b0 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