diff options
| author | Alex Bennée <alex.bennee@linaro.org> | 2016-01-28 10:15:17 +0000 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-02-09 15:45:26 +0100 |
| commit | a0aa44b488b3601415d55041e4619aef5f3a4ba8 (patch) | |
| tree | cc9b67aa6b6087f2997ef555f099a054e88bae93 /hw/scsi/scsi-generic.c | |
| parent | 977a82ab56daac83623d730174f47d5a7edd73c9 (diff) | |
| download | focaccia-qemu-a0aa44b488b3601415d55041e4619aef5f3a4ba8.tar.gz focaccia-qemu-a0aa44b488b3601415d55041e4619aef5f3a4ba8.zip | |
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>
Diffstat (limited to 'hw/scsi/scsi-generic.c')
0 files changed, 0 insertions, 0 deletions