diff options
| author | Richard Henderson | 2021-07-11 17:41:28 +0200 |
|---|---|---|
| committer | Richard Henderson | 2021-07-21 19:45:38 +0200 |
| commit | 47345e7124709d280f14551113a20fd81ad2bf20 (patch) | |
| tree | 23298341af10a3d8e37276290996b40280bd5192 /configure | |
| parent | qemu/atomic: Use macros for CONFIG_ATOMIC64 (diff) | |
| download | qemu-47345e7124709d280f14551113a20fd81ad2bf20.tar.gz qemu-47345e7124709d280f14551113a20fd81ad2bf20.tar.xz qemu-47345e7124709d280f14551113a20fd81ad2bf20.zip | |
qemu/atomic: Remove pre-C11 atomic fallbacks
We now require c11, so the fallbacks are now dead code
Tested-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -3991,18 +3991,11 @@ cat > $TMPC << EOF int main(void) { uint64_t x = 0, y = 0; -#ifdef __ATOMIC_RELAXED y = __atomic_load_n(&x, __ATOMIC_RELAXED); __atomic_store_n(&x, y, __ATOMIC_RELAXED); __atomic_compare_exchange_n(&x, &y, x, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); __atomic_exchange_n(&x, y, __ATOMIC_RELAXED); __atomic_fetch_add(&x, y, __ATOMIC_RELAXED); -#else - typedef char is_host64[sizeof(void *) >= sizeof(uint64_t) ? 1 : -1]; - __sync_lock_test_and_set(&x, y); - __sync_val_compare_and_swap(&x, y, 0); - __sync_fetch_and_add(&x, y); -#endif return 0; } EOF |
