qemu-irix/include/qemu
Alex Bennée a0aa44b488 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.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <1453976119-24372-4-git-send-email-alex.bennee@linaro.org>
[Use __ATOMIC_SEQ_CST for atomic_mb_read/atomic_mb_set on !POWER. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-02-09 15:45:26 +01:00
..
acl.h
atomic.h include/qemu/atomic.h: default to __atomic functions 2016-02-09 15:45:26 +01:00
base64.h util: add base64 decoding function 2015-12-18 16:25:08 +00:00
bitmap.h
bitops.h
bswap.h
buffer.h buffer: allow a buffer to shrink gracefully 2015-11-05 09:09:58 +01:00
compatfd.h
compiler.h
config-file.h
coroutine.h
coroutine_int.h
crc32c.h
envlist.h
error-report.h
event_notifier.h util: const event_notifier_get_fd() argument 2015-10-24 18:02:49 +02:00
fifo8.h
fprintf-fn.h
hbitmap.h
host-utils.h
int128.h
iov.h
log.h trace: convert stderr backend to log 2016-02-03 10:37:10 +00:00
main-loop.h
memfd.h
mmap-alloc.h util/mmap-alloc: fix hugetlb support on ppc64 2015-12-02 22:38:23 +02:00
module.h
notify.h
option.h
option_int.h
osdep.h osdep.h: Include glib-compat.h in osdep.h rather than qemu-common.h 2016-01-11 11:39:28 +03:00
queue.h
range.h
ratelimit.h
rcu.h rcu: optimize rcu_read_lock 2015-12-17 17:33:49 +01:00
rcu_queue.h
readline.h
rfifolock.h
seqlock.h
sockets.h sockets: remove use of QemuOpts from socket_dgram 2016-01-19 15:41:01 +01:00
thread-posix.h
thread-win32.h
thread.h
throttle.h blockdev: Error out on negative throttling option values 2016-01-20 13:37:37 +01:00
timed-average.h block: Add average I/O queue depth to BlockDeviceTimedStats 2015-11-12 16:22:46 +01:00
timer.h
typedefs.h isa: add an ISA DMA interface, and store it within the ISA bus 2016-02-03 11:28:57 -05:00
uri.h
xattr.h