mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 22:23:23 -10:00
target/arm: Enable FEAT_FPMR for -cpu max
Reviewed-by: Peter Maydell <[email protected]> Signed-off-by: Richard Henderson <[email protected]> Message-id: [email protected] Signed-off-by: Peter Maydell <[email protected]>
This commit is contained in:
1 parent
82e6411eac
commit
2430d49a17
3 files changed
+6
No files matched your search
@@ -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