diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-05-19 18:02:19 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-05-23 18:54:55 -0700 |
commit | 4deb39ebb33d97e2ad5466e1b5b5e7c50ad83a0a (patch) | |
tree | 010ff8d0d09d153a44c9134db66fa6c0e2974208 /host/include/aarch64 | |
parent | 7bedee3243b995281837a30ae7bf8982b4fd570c (diff) | |
download | qemu-4deb39ebb33d97e2ad5466e1b5b5e7c50ad83a0a.zip qemu-4deb39ebb33d97e2ad5466e1b5b5e7c50ad83a0a.tar.gz qemu-4deb39ebb33d97e2ad5466e1b5b5e7c50ad83a0a.tar.bz2 |
accel/tcg: Eliminate #if on HAVE_ATOMIC128 and HAVE_CMPXCHG128
These symbols will shortly become dynamic runtime tests and
therefore not appropriate for the preprocessor. Use the
matching CONFIG_* symbols for that purpose.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'host/include/aarch64')
-rw-r--r-- | host/include/aarch64/host/atomic128-cas.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/host/include/aarch64/host/atomic128-cas.h b/host/include/aarch64/host/atomic128-cas.h index 80de58e..5863010 100644 --- a/host/include/aarch64/host/atomic128-cas.h +++ b/host/include/aarch64/host/atomic128-cas.h @@ -37,6 +37,8 @@ static inline Int128 atomic16_cmpxchg(Int128 *ptr, Int128 cmp, Int128 new) return int128_make128(oldl, oldh); } + +# define CONFIG_CMPXCHG128 1 # define HAVE_CMPXCHG128 1 #endif |