OSDN Git Service

tcg/arm: Simplify use_armv5t_instructions
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 12 Aug 2021 23:19:59 +0000 (13:19 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 14 Sep 2021 19:00:21 +0000 (12:00 -0700)
commit4ae82ca7eb3913a575646dacdc0d151723e54d1d
tree446eabc5238b80902f56dfa612ad91c9dafcd6e8
parent326b9669b0ae118e8275af536ee9503cd93f8525
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>
tcg/arm/tcg-target.h