aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-03-12 13:06:01 +0000
committerRiku Voipio <riku.voipio@linaro.org>2014-03-17 11:44:31 +0200
commit3b899ea7d405dc7634ac629aa7b0e7639d506d9f (patch)
tree5dca31d1b35a86f66050c62cde02b458f32feab7 /linux-user
parent7f72cd235fa33f2fc7a8d1cc4d621bf7db61e9eb (diff)
downloadqemu-arm-3b899ea7d405dc7634ac629aa7b0e7639d506d9f.tar.gz
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>
Diffstat (limited to 'linux-user')
-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