2010-02-22 17:57:54 +01:00
|
|
|
#ifndef __QEMU_BARRIER_H
|
|
|
|
#define __QEMU_BARRIER_H 1
|
|
|
|
|
|
|
|
/* FIXME: arch dependant, x86 version */
|
|
|
|
#define smp_wmb() asm volatile("" ::: "memory")
|
|
|
|
|
2010-06-25 16:56:49 +02:00
|
|
|
/* Compiler barrier */
|
|
|
|
#define barrier() asm volatile("" ::: "memory")
|
|
|
|
|
2010-02-22 17:57:54 +01:00
|
|
|
#endif
|