target/arm: Explicitly enable VFP short-vectors for aarch32 -cpu max

At the moment our -cpu max for AArch32 supports VFP short-vectors
because we always implement them, even for CPUs which should
not have them. The following commits are going to switch to
using the correct ID-register-check to enable or disable short
vector support, so we need to turn it on explicitly for -cpu max,
because Cortex-A15 doesn't implement it.

We don't enable this for the AArch64 -cpu max, because the v8A
architecture never supports short-vectors.

Backports commit 973751fd798d41402d34f9f705c0c6d1633d0cda from qemu
This commit is contained in:
Peter Maydell 2019-06-13 16:38:00 -04:00 committed by Lioncash
parent 808d929d7c
commit 93adaa7de2
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -1715,9 +1715,9 @@ static void arm_max_initfn(struct uc_struct *uc, Object *obj, void *opaque)
ARMCPU *cpu = ARM_CPU(uc, obj);
cortex_a15_initfn(uc, obj, opaque);
/* In future we might add feature bits here even if the
* real-world A15 doesn't implement them.
*/
/* old-style VFP short-vector support */
cpu->isar.mvfr0 = FIELD_DP32(cpu->isar.mvfr0, MVFR0, FPSHVEC, 1);
// Unicorn: We lie and enable them anyway.
/* We don't set these in system emulation mode for the moment,