qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] linux-user: Implement atomic_barrier system call


From: Timothy E Baldwin
Subject: [Qemu-devel] [PATCH] linux-user: Implement atomic_barrier system call
Date: Sun, 30 Aug 2015 20:29:45 +0100

Implemented atomic_barrier system call using GCC/clang
builtin __sync_synchronize().

Signed-off-by: Timothy Edward Baldwin <address@hidden>
---
 linux-user/syscall.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index bca3424..72d107a 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -9679,7 +9679,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
 #ifdef TARGET_NR_atomic_barrier
     case TARGET_NR_atomic_barrier:
     {
-        /* Like the kernel implementation and the qemu arm barrier, no-op 
this? */
+        __sync_synchronize();
         ret = 0;
         break;
     }
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]