File:  [Qemu by Fabrice Bellard] / qemu / qemu-barrier.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:23:14 2018 UTC (3 years, 1 month ago) by root
Branches: qemu, MAIN
CVS tags: qemu1000, qemu0151, qemu0150, qemu0141, qemu0140, qemu0130, HEAD
qemu 0.13.0

    1: #ifndef __QEMU_BARRIER_H
    2: #define __QEMU_BARRIER_H 1
    3: 
    4: /* FIXME: arch dependant, x86 version */
    5: #define smp_wmb()   asm volatile("" ::: "memory")
    6: 
    7: /* Compiler barrier */
    8: #define barrier()   asm volatile("" ::: "memory")
    9: 
   10: #endif

unix.superglobalmegacorp.com