summaryrefslogtreecommitdiffstats
path: root/include/hw/scsi
diff options
context:
space:
mode:
authorAlex Bennée2016-01-28 11:15:17 +0100
committerPaolo Bonzini2016-02-09 15:45:26 +0100
commita0aa44b488b3601415d55041e4619aef5f3a4ba8 (patch)
treecc9b67aa6b6087f2997ef555f099a054e88bae93 /include/hw/scsi
parentconfigure: sanity check the glib library that pkg-config finds (diff)
downloadqemu-a0aa44b488b3601415d55041e4619aef5f3a4ba8.tar.gz
qemu-a0aa44b488b3601415d55041e4619aef5f3a4ba8.tar.xz
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 'include/hw/scsi')
0 files changed, 0 insertions, 0 deletions