[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 12/27] meson: Fix detect atomic128 support with optimization
From: |
Richard Henderson |
Subject: |
[PATCH v2 12/27] meson: Fix detect atomic128 support with optimization |
Date: |
Tue, 23 May 2023 06:47:18 -0700 |
Silly typo: sizeof(16) != 16.
Fixes: e61f1efeb730 ("meson: Detect atomic128 support with optimization")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index c516b911d9..ef181ff2df 100644
--- a/meson.build
+++ b/meson.build
@@ -2557,7 +2557,7 @@ if has_int128
# __alignof(unsigned __int128) for the host.
atomic_test_128 = '''
int main(int ac, char **av) {
- unsigned __int128 *p = __builtin_assume_aligned(av[ac - 1], sizeof(16));
+ unsigned __int128 *p = __builtin_assume_aligned(av[ac - 1], 16);
p[1] = __atomic_load_n(&p[0], __ATOMIC_RELAXED);
__atomic_store_n(&p[2], p[3], __ATOMIC_RELAXED);
__atomic_compare_exchange_n(&p[4], &p[5], p[6], 0, __ATOMIC_RELAXED,
__ATOMIC_RELAXED);
--
2.34.1
- Re: [PATCH v2 17/27] target/s390x: Use cpu_{ld,st}*_mmu in do_csst, (continued)
- [PATCH v2 16/27] accel/tcg: Unify cpu_{ld,st}*_{be,le}_mmu, Richard Henderson, 2023/05/23
- [PATCH v2 18/27] target/s390x: Always use cpu_atomic_cmpxchgl_be_mmu in do_csst, Richard Henderson, 2023/05/23
- [PATCH v2 19/27] accel/tcg: Remove cpu_atomic_{ld,st}o_*_mmu, Richard Henderson, 2023/05/23
- [PATCH v2 10/27] include/host: Split out atomic128-cas.h, Richard Henderson, 2023/05/23
- [PATCH v2 12/27] meson: Fix detect atomic128 support with optimization,
Richard Henderson <=
- [PATCH v2 14/27] target/ppc: Use tcg_gen_qemu_{ld, st}_i128 for LQARX, LQ, STQ, Richard Henderson, 2023/05/23
- [PATCH v2 21/27] accel/tcg: Eliminate #if on HAVE_ATOMIC128 and HAVE_CMPXCHG128, Richard Henderson, 2023/05/23
- [PATCH v2 20/27] accel/tcg: Remove prot argument to atomic_mmu_lookup, Richard Henderson, 2023/05/23
- [PATCH v2 22/27] qemu/atomic128: Split atomic16_read, Richard Henderson, 2023/05/23
- [PATCH v2 24/27] tcg: Split out tcg/debug-assert.h, Richard Henderson, 2023/05/23