diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-08-12 13:19:59 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-09-14 12:00:21 -0700 |
commit | 4ae82ca7eb3913a575646dacdc0d151723e54d1d (patch) | |
tree | 446eabc5238b80902f56dfa612ad91c9dafcd6e8 /tcg/arm | |
parent | 326b9669b0ae118e8275af536ee9503cd93f8525 (diff) | |
download | qemu-4ae82ca7eb3913a575646dacdc0d151723e54d1d.zip qemu-4ae82ca7eb3913a575646dacdc0d151723e54d1d.tar.gz qemu-4ae82ca7eb3913a575646dacdc0d151723e54d1d.tar.bz2 |
tcg/arm: Simplify use_armv5t_instructions
According to the Arm ARM DDI 0406C, section A1.3, the valid variants
are ARMv5T, ARMv5TE, ARMv5TEJ -- there is no ARMv5 without Thumb.
Therefore simplify the test from preprocessor ifdefs to base
architecture revision. Retain the "t" in the name to minimize churn.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/arm')
-rw-r--r-- | tcg/arm/tcg-target.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h index 18bb16c..f41b809 100644 --- a/tcg/arm/tcg-target.h +++ b/tcg/arm/tcg-target.h @@ -28,13 +28,7 @@ extern int arm_arch; -#if defined(__ARM_ARCH_5T__) \ - || defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5TEJ__) -# define use_armv5t_instructions 1 -#else -# define use_armv5t_instructions use_armv6_instructions -#endif - +#define use_armv5t_instructions (__ARM_ARCH >= 5 || arm_arch >= 5) #define use_armv6_instructions (__ARM_ARCH >= 6 || arm_arch >= 6) #define use_armv7_instructions (__ARM_ARCH >= 7 || arm_arch >= 7) |