OSDN Git Service

target/arm: Use MVFR1 feature bits to gate A32/T32 FP16 instructions
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 28 Feb 2019 10:55:16 +0000 (10:55 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 28 Feb 2019 11:03:04 +0000 (11:03 +0000)
commit602f6e42cfbfe9278be34e9b91d2ceb695837e02
treefab04e997914a2856797c661155179c0d8ad0155
parentaab7a3786f085cb4c6842c3c8ea0c86e2c835248
target/arm: Use MVFR1 feature bits to gate A32/T32 FP16 instructions

Instead of gating the A32/T32 FP16 conversion instructions on
the ARM_FEATURE_VFP_FP16 flag, switch to our new approach of
looking at ID register bits. In this case MVFR1 fields FPHP
and SIMDHP indicate the presence of these insns.

This change doesn't alter behaviour for any of our CPUs.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190222170936.13268-2-peter.maydell@linaro.org
target/arm/cpu.c
target/arm/cpu.h
target/arm/kvm32.c
target/arm/translate.c