summaryrefslogtreecommitdiffstats
path: root/src/recompiler/qemu-barrier.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/recompiler/qemu-barrier.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/recompiler/qemu-barrier.h b/src/recompiler/qemu-barrier.h
new file mode 100644
index 00000000..b77fce23
--- /dev/null
+++ b/src/recompiler/qemu-barrier.h
@@ -0,0 +1,10 @@
+#ifndef __QEMU_BARRIER_H
+#define __QEMU_BARRIER_H 1
+
+/* FIXME: arch dependant, x86 version */
+#define smp_wmb() asm volatile("" ::: "memory")
+
+/* Compiler barrier */
+#define barrier() asm volatile("" ::: "memory")
+
+#endif