diff options
author | Peter Maydell | 2020-02-14 18:50:59 +0100 |
---|---|---|
committer | Peter Maydell | 2020-02-21 17:07:01 +0100 |
commit | 22e570730d15374453baa73ff2a699e01ef4e950 (patch) | |
tree | 9468eaf9c40c4a77ac4334d5ebbf9d0815dce315 /target/arm/cpu.h | |
parent | target/arm: Add isar_feature_any_fp16 and document naming/usage conventions (diff) | |
download | qemu-22e570730d15374453baa73ff2a699e01ef4e950.tar.gz qemu-22e570730d15374453baa73ff2a699e01ef4e950.tar.xz qemu-22e570730d15374453baa73ff2a699e01ef4e950.zip |
target/arm: Define and use any_predinv isar_feature test
Instead of open-coding "ARM_FEATURE_AARCH64 ? aa64_predinv: aa32_predinv",
define and use an any_predinv isar_feature test function.
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20200214175116.9164-5-peter.maydell@linaro.org
Diffstat (limited to 'target/arm/cpu.h')
-rw-r--r-- | target/arm/cpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 7ccd65bdce..ef0feb228a 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -3677,6 +3677,11 @@ static inline bool isar_feature_any_fp16(const ARMISARegisters *id) return isar_feature_aa64_fp16(id) || isar_feature_aa32_fp16_arith(id); } +static inline bool isar_feature_any_predinv(const ARMISARegisters *id) +{ + return isar_feature_aa64_predinv(id) || isar_feature_aa32_predinv(id); +} + /* * Forward to the above feature tests given an ARMCPU pointer. */ |