mirror of
https://github.com/qemu/qemu.git
synced 2026-07-09 01:56:21 +00:00
target/arm: Enable FEAT_FPMR for -cpu max
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20260522220306.235200-18-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
committed by
Peter Maydell
parent
82e6411eac
commit
2430d49a17
@@ -77,6 +77,7 @@ the following architecture extensions:
|
||||
- FEAT_FPAC (Faulting on AUT* instructions)
|
||||
- FEAT_FPACCOMBINE (Faulting on combined pointer authentication instructions)
|
||||
- FEAT_FPACC_SPEC (Speculative behavior of combined pointer authentication instructions)
|
||||
- FEAT_FPMR (Floating-point Mode Register)
|
||||
- FEAT_FRINTTS (Floating-point to integer instructions)
|
||||
- FEAT_FlagM (Flag manipulation instructions v2)
|
||||
- FEAT_FlagM2 (Enhancements to flag manipulation instructions)
|
||||
|
||||
@@ -219,6 +219,7 @@ abi_ulong get_elf_hwcap2(CPUState *cs)
|
||||
GET_FEATURE_ID(aa64_cssc, ARM_HWCAP2_A64_CSSC);
|
||||
GET_FEATURE_ID(aa64_lse128, ARM_HWCAP2_A64_LSE128);
|
||||
GET_FEATURE_ID(aa64_faminmax, ARM_HWCAP2_A64_FAMINMAX);
|
||||
GET_FEATURE_ID(aa64_fpmr, ARM_HWCAP2_A64_FPMR);
|
||||
|
||||
return hwcaps;
|
||||
}
|
||||
|
||||
@@ -1297,6 +1297,10 @@ void aarch64_max_tcg_initfn(Object *obj)
|
||||
t = FIELD_DP64(t, ID_AA64PFR1, GCS, 1); /* FEAT_GCS */
|
||||
SET_IDREG(isar, ID_AA64PFR1, t);
|
||||
|
||||
t = GET_IDREG(isar, ID_AA64PFR2);
|
||||
t = FIELD_DP64(t, ID_AA64PFR2, FPMR, 1); /* FEAT_FPMR */
|
||||
SET_IDREG(isar, ID_AA64PFR2, t);
|
||||
|
||||
t = GET_IDREG(isar, ID_AA64MMFR0);
|
||||
t = FIELD_DP64(t, ID_AA64MMFR0, PARANGE, 6); /* FEAT_LPA: 52 bits */
|
||||
t = FIELD_DP64(t, ID_AA64MMFR0, TGRAN16, 1); /* 16k pages supported */
|
||||
|
||||
Reference in New Issue
Block a user