mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-05 22:17:40 -07:00
target/arm: Add isar_feature_aa64_fp_simd, isar_feature_aa32_vfp
We cannot easily create "any" functions for these, because the ID_AA64PFR0 fields for FP and SIMD signal "enabled" with zero. Which means that an aarch32-only cpu will return incorrect results when testing the aarch64 registers. To use these, we must either have context or additionally test vs ARM_FEATURE_AARCH64. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20200224222232.13807-5-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
f67957e17c
commit
7d63183ff1
3 changed files with 20 additions and 5 deletions
|
|
@ -9,9 +9,10 @@
|
|||
static bool vfp_needed(void *opaque)
|
||||
{
|
||||
ARMCPU *cpu = opaque;
|
||||
CPUARMState *env = &cpu->env;
|
||||
|
||||
return arm_feature(env, ARM_FEATURE_VFP);
|
||||
return (arm_feature(&cpu->env, ARM_FEATURE_AARCH64)
|
||||
? cpu_isar_feature(aa64_fp_simd, cpu)
|
||||
: cpu_isar_feature(aa32_vfp_simd, cpu));
|
||||
}
|
||||
|
||||
static int get_fpscr(QEMUFile *f, void *opaque, size_t size,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue