aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2016-09-30 22:30:52 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-10-04 10:00:25 +0200
commit23ea7f57949f2f5934f4d5bbc29fe321b3a7067b (patch)
treee04566b1563262b7d1b56ea5e2422b3029edd252 /include
parent254316fa1f3f9c9ee9bf530278359146f97e309e (diff)
downloadqemu-arm-23ea7f57949f2f5934f4d5bbc29fe321b3a7067b.tar.gz
atomic.h: fix __SANITIZE_THREAD__ build
Only very modern GCC's actually set this define when building with the ThreadSanitizer so this little typo slipped though. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20160930213106.20186-2-alex.bennee@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/atomic.h b/include/qemu/atomic.h
index 0cce246ea9..c493f89059 100644
--- a/include/qemu/atomic.h
+++ b/include/qemu/atomic.h
@@ -82,7 +82,7 @@
*/
#if defined(__SANITIZE_THREAD__)
#define smp_read_barrier_depends() ({ barrier(); __atomic_thread_fence(__ATOMIC_CONSUME); })
-#elsif defined(__alpha__)
+#elif defined(__alpha__)
#define smp_read_barrier_depends() asm volatile("mb":::"memory")
#else
#define smp_read_barrier_depends() barrier()