[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 05/16] target/arm: Split out arm32_max_features
From: |
Peter Maydell |
Subject: |
Re: [PATCH 05/16] target/arm: Split out arm32_max_features |
Date: |
Mon, 11 Apr 2022 13:52:47 +0100 |
On Sat, 9 Apr 2022 at 01:14, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Share the code to set AArch32 max features so that we no
> longer have code drift between qemu{-system,}-{arm,aarch64}.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> target/arm/internals.h | 2 +
> target/arm/cpu64.c | 51 +----------------
> target/arm/cpu_tcg.c | 121 ++++++++++++++++++++++-------------------
> 3 files changed, 70 insertions(+), 104 deletions(-)
> +/* Share AArch32 -cpu max features with AArch64. */
> +void arm32_max_features(ARMCPU *cpu)
> +{
> + uint32_t t;
> +
> + /* Break with true ARMv8 and add back old-style VFP short-vector support
> */
> + t = cpu->isar.mvfr0;
> + t = FIELD_DP32(t, MVFR0, FPSHVEC, 1);
> + cpu->isar.mvfr0 = t;
So, we definitely want to enable short-vector support for
qemu-arm -cpu max, but I'm less convinced that we want to
enable it for qemu-system-arm -cpu max, and definitely don't
think we want to enable it for system-mode qemu-system-aarch64.
'max' for usermode has more of a flavour of "run as many binaries
as we can", especially since it's the default; 'max' for system
emulation mode is more "latest and greatest", which might imply
"some very old stuff is no longer available".
thanks
-- PMM
- [PATCH 02/16] target/arm: Adjust definition of CONTEXTIDR_EL2, (continued)
- [PATCH 02/16] target/arm: Adjust definition of CONTEXTIDR_EL2, Richard Henderson, 2022/04/08
- [PATCH 01/16] target/arm: Add isar predicates for FEAT_Debugv8p2, Richard Henderson, 2022/04/08
- [PATCH 04/16] target/arm: Set ID_DFR0.PerfMon for qemu-system-arm -cpu max, Richard Henderson, 2022/04/08
- [PATCH 03/16] target/arm: Update qemu-system-arm -cpu max to cortex-a57, Richard Henderson, 2022/04/08
- [PATCH 05/16] target/arm: Split out arm32_max_features, Richard Henderson, 2022/04/08
- Re: [PATCH 05/16] target/arm: Split out arm32_max_features,
Peter Maydell <=
- [PATCH 06/16] target/arm: Annotate arm_max_initfn with FEAT identifiers, Richard Henderson, 2022/04/08
- [PATCH 08/16] target/arm: Enable FEAT_Debugv8p2 for -cpu max, Richard Henderson, 2022/04/08
- [PATCH 07/16] target/arm: Use field names for manipulating EL2 and EL3 modes, Richard Henderson, 2022/04/08
- [PATCH 09/16] target/arm: Enable FEAT_Debugv8p4 for -cpu max, Richard Henderson, 2022/04/08
- [PATCH 12/16] target/arm: Enable SCR and HCR bits for RAS, Richard Henderson, 2022/04/08