diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-02-14 10:15:31 -0800 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2020-02-21 16:07:03 +0000 |
commit | a6627f5fc607939f7c8b9c3157fdcb2d368ba0ed (patch) | |
tree | 7c1138919c01d3e60d07e86db4f00d5024d53065 /target/arm/cpu.c | |
parent | 0e13ba7889432c5e2f1bdb1b25e7076ca1b1dcba (diff) | |
download | qemu-a6627f5fc607939f7c8b9c3157fdcb2d368ba0ed.zip qemu-a6627f5fc607939f7c8b9c3157fdcb2d368ba0ed.tar.gz qemu-a6627f5fc607939f7c8b9c3157fdcb2d368ba0ed.tar.bz2 |
target/arm: Use isar_feature_aa32_simd_r32 more places
Many uses of ARM_FEATURE_VFP3 are testing for the number of simd
registers implemented. Use the proper test vs MVFR0.SIMDReg.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200214181547.21408-4-richard.henderson@linaro.org
[PMM: fix typo in commit message]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/cpu.c')
-rw-r--r-- | target/arm/cpu.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 9f618e1..8085268 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1009,11 +1009,10 @@ static void arm_cpu_dump_state(CPUState *cs, FILE *f, int flags) if (flags & CPU_DUMP_FPU) { int numvfpregs = 0; - if (arm_feature(env, ARM_FEATURE_VFP)) { - numvfpregs += 16; - } - if (arm_feature(env, ARM_FEATURE_VFP3)) { - numvfpregs += 16; + if (cpu_isar_feature(aa32_simd_r32, cpu)) { + numvfpregs = 32; + } else if (arm_feature(env, ARM_FEATURE_VFP)) { + numvfpregs = 16; } for (i = 0; i < numvfpregs; i++) { uint64_t v = *aa32_vfp_dreg(env, i); |