unicorn/qemu/include/qemu
Alex Bennée 171d267209
include/qemu/atomic.h: default to __atomic functions
The __atomic primitives have been available since GCC 4.7 and provide
a richer interface for describing memory ordering requirements. As a
bonus by using the primitives instead of hand-rolled functions we can
use tools such as the ThreadSanitizer which need the use of well
defined APIs for its analysis.

If we have __ATOMIC defines we exclusively use the __atomic primitives
for all our atomic access. Otherwise we fall back to the mixture of
__sync and hand-rolled barrier cases.

Backports commit a0aa44b488b3601415d55041e4619aef5f3a4ba8 from qemu
2018-02-22 16:12:59 -05:00
..
atomic.h include/qemu/atomic.h: default to __atomic functions 2018-02-22 16:12:59 -05:00
bitmap.h memory: RCU ram_list.dirty_memory[] for safe RAM hotplug 2018-02-22 15:38:03 -05:00
bitops.h bitmap: add atomic set functions 2018-02-13 09:59:30 -05:00
bswap.h Move HOST_LONG_BITS from qemu-common.h to qemu/osdep.h 2018-02-21 23:10:43 -05:00
compiler.h compiler.h: Use glue() in QEMU_BUILD_BUG_ON define 2018-02-17 15:23:28 -05:00
crc32c.h import 2015-08-21 15:04:50 +08:00
cutils.h util: move declarations out of qemu-common.h 2018-02-22 09:25:48 -05:00
fprintf-fn.h Stop including qemu-common.h in memory.h 2018-02-17 15:23:16 -05:00
host-utils.h host-util: Add power calculation functions 2018-02-17 15:23:35 -05:00
int128.h Automated leading tab to spaces conversion. 2017-01-21 12:28:22 +11:00
log.h log: move qemu_log_close/qemu_log_flush from header to log.c 2018-02-22 11:13:17 -05:00
mmap-alloc.h exec: factor out duplicate mmap code 2018-02-17 15:24:03 -05:00
module.h cleanup qemu/include/qemu/module.h 2017-01-25 00:20:08 +08:00
osdep.h Move QEMU_ALIGN_*() from qemu-common.h to qemu/osdep.h 2018-02-21 23:12:24 -05:00
queue.h import 2015-08-21 15:04:50 +08:00
range.h platform.h move #3 2017-01-21 00:13:21 +11:00
thread-posix.h remove mutex code 2017-01-20 15:44:03 +08:00
thread-win32.h remove mutex code 2017-01-20 15:44:03 +08:00
thread.h platform.h move #3 2017-01-21 00:13:21 +11:00
timer.h Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2018-02-21 23:21:36 -05:00
typedefs.h include/qemu/osdep.h: Don't include qapi/error.h 2018-02-21 23:08:18 -05:00