diff options
Diffstat (limited to 'src/recompiler/qemu-barrier.h')
-rw-r--r-- | src/recompiler/qemu-barrier.h | 10 |
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 |