This repository has been archived on 2022-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
2010-02-22 16:57:54 +00:00
|
|
|
#ifndef __QEMU_BARRIER_H
|
|
|
|
#define __QEMU_BARRIER_H 1
|
|
|
|
|
|
|
|
/* FIXME: arch dependant, x86 version */
|
|
|
|
#define smp_wmb() asm volatile("" ::: "memory")
|
|
|
|
|
2010-06-25 14:56:49 +00:00
|
|
|
/* Compiler barrier */
|
|
|
|
#define barrier() asm volatile("" ::: "memory")
|
|
|
|
|
2010-02-22 16:57:54 +00:00
|
|
|
#endif
|