qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [RFC 19/38] tcg: add tcg_gen_smp_rmb()


From: Emilio G. Cota
Subject: [Qemu-devel] [RFC 19/38] tcg: add tcg_gen_smp_rmb()
Date: Sun, 23 Aug 2015 20:23:48 -0400

Signed-off-by: Emilio G. Cota <address@hidden>
---
 tcg/tcg-op.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h
index 52482c0..3ec9f13 100644
--- a/tcg/tcg-op.h
+++ b/tcg/tcg-op.h
@@ -716,6 +716,16 @@ static inline void tcg_gen_fence_full(void)
     tcg_gen_op0(&tcg_ctx, INDEX_op_fence_full);
 }
 
+#if defined(__i386__) || defined(__x86_64__) || defined(__s390x__)
+static inline void tcg_gen_smp_rmb(void)
+{ }
+#else
+static inline void tcg_gen_smp_rmb(void)
+{
+    tcg_gen_fence_load();
+}
+#endif
+
 /* QEMU specific operations.  */
 
 #ifndef TARGET_LONG_BITS
-- 
1.9.1




reply via email to

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