diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-11-06 15:31:22 +1100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-05-16 15:21:39 -0700 |
commit | b764941955d5ff13dd2760b59ce37d98941fc46b (patch) | |
tree | 6e07bf7259e14fa2ae013e87da7c3cba8a4ea0a5 /tcg/aarch64/tcg-target.h | |
parent | 6d3f2e3c64ac93ff6f7e286068091d5559df255c (diff) | |
download | qemu-b764941955d5ff13dd2760b59ce37d98941fc46b.zip qemu-b764941955d5ff13dd2760b59ce37d98941fc46b.tar.gz qemu-b764941955d5ff13dd2760b59ce37d98941fc46b.tar.bz2 |
tcg/aarch64: Detect have_lse, have_lse2 for linux
Notice when the host has additional atomic instructions.
The new variables will also be used in generated code.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/aarch64/tcg-target.h')
-rw-r--r-- | tcg/aarch64/tcg-target.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tcg/aarch64/tcg-target.h b/tcg/aarch64/tcg-target.h index c0b0f61..3c0b0d3 100644 --- a/tcg/aarch64/tcg-target.h +++ b/tcg/aarch64/tcg-target.h @@ -57,6 +57,9 @@ typedef enum { #define TCG_TARGET_CALL_ARG_I128 TCG_CALL_ARG_EVEN #define TCG_TARGET_CALL_RET_I128 TCG_CALL_RET_NORMAL +extern bool have_lse; +extern bool have_lse2; + /* optional instructions */ #define TCG_TARGET_HAS_div_i32 1 #define TCG_TARGET_HAS_rem_i32 1 |