mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 02:24:51 +00:00
meson: Remove CONFIG_ATOMIC64
This config is no longer used. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
16
meson.build
16
meson.build
@@ -2939,22 +2939,6 @@ config_host_data.set('HAVE_BROKEN_SIZE_MAX', not cc.compiles('''
|
||||
return printf("%zu", SIZE_MAX);
|
||||
}''', args: ['-Werror']))
|
||||
|
||||
# See if 64-bit atomic operations are supported.
|
||||
# Note that without __atomic builtins, we can only
|
||||
# assume atomic loads/stores max at pointer size.
|
||||
config_host_data.set('CONFIG_ATOMIC64', cc.links('''
|
||||
#include <stdint.h>
|
||||
int main(void)
|
||||
{
|
||||
uint64_t x = 0, y = 0;
|
||||
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);
|
||||
return 0;
|
||||
}''', args: qemu_isa_flags))
|
||||
|
||||
# has_int128_type is set to false on Emscripten to avoid errors by libffi
|
||||
# during runtime.
|
||||
has_int128_type = host_os != 'emscripten' and cc.compiles('''
|
||||
|
||||
Reference in New Issue
Block a user