[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL for-2.0 2/7] linux-user: Don't return uninitialized v
From: |
riku . voipio |
Subject: |
[Qemu-devel] [PULL for-2.0 2/7] linux-user: Don't return uninitialized value for atomic_barrier syscall |
Date: |
Wed, 19 Mar 2014 16:02:57 +0200 |
From: Peter Maydell <address@hidden>
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 <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
---
linux-user/syscall.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index ffc11de..b5eadb1 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
--
1.8.1.2
- [Qemu-devel] [PULL for-2.0 0/7] linux-user patches, riku . voipio, 2014/03/19
- [Qemu-devel] [PULL for-2.0 3/7] linux-user: implement F_[GS]ETOWN_EX, riku . voipio, 2014/03/19
- [Qemu-devel] [PULL for-2.0 2/7] linux-user: Don't return uninitialized value for atomic_barrier syscall,
riku . voipio <=
- [Qemu-devel] [PULL for-2.0 1/7] linux-user/signal.c: Correct error path for AArch64 do_rt_sigreturn, riku . voipio, 2014/03/19
- [Qemu-devel] [PULL for-2.0 4/7] linux-user: Don't reserve space for commpage for AArch64, riku . voipio, 2014/03/19
- [Qemu-devel] [PULL for-2.0 5/7] signal: added a wrapper for sigprocmask function, riku . voipio, 2014/03/19
- [Qemu-devel] [PULL for-2.0 6/7] linux-user: Don't allow guest to block SIGSEGV, riku . voipio, 2014/03/19
- [Qemu-devel] [PULL for-2.0 7/7] linux-user: Implement capget, capset, riku . voipio, 2014/03/19
- Re: [Qemu-devel] [PULL for-2.0 0/7] linux-user patches, Peter Maydell, 2014/03/19