Browse Source

target/arm/tcg/cpu64.c: Enable ASID2 for cpu_max

docs/system/arm/emulation.rst: Add ASID2

Reviewed-by: Gustavo Romero <gustavo.romero@linaro.org>
Signed-off-by: Jim MacArthur <jim.macarthur@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
pull/316/head
Jim MacArthur 2 months ago
committed by Peter Maydell
parent
commit
672a1dd1ed
  1. 1
      docs/system/arm/emulation.rst
  2. 4
      target/arm/tcg/cpu64.c

1
docs/system/arm/emulation.rst

@ -24,6 +24,7 @@ the following architecture extensions:
- FEAT_AIE (Memory Attribute Index Enhancement)
- FEAT_Armv9_Crypto (Armv9 Cryptographic Extension)
- FEAT_ASID16 (16 bit ASID)
- FEAT_ASID2 (Concurrent use of two ASIDs)
- FEAT_ATS1A (Address Translation operations that ignore stage 1 permissions)
- FEAT_BBM at level 2 (Translation table break-before-make levels)
- FEAT_BF16 (AArch64 BFloat16 instructions)

4
target/arm/tcg/cpu64.c

@ -1334,6 +1334,10 @@ void aarch64_max_tcg_initfn(Object *obj)
t = FIELD_DP64(t, ID_AA64MMFR3, AIE, 1); /* FEAT_AIE */
SET_IDREG(isar, ID_AA64MMFR3, t);
t = GET_IDREG(isar, ID_AA64MMFR4);
t = FIELD_DP64(t, ID_AA64MMFR4, ASID2, 1); /* FEAT_ASID2 */
SET_IDREG(isar, ID_AA64MMFR4, t);
t = GET_IDREG(isar, ID_AA64ZFR0);
t = FIELD_DP64(t, ID_AA64ZFR0, SVEVER, 2); /* FEAT_SVE2p1 */
t = FIELD_DP64(t, ID_AA64ZFR0, AES, 2); /* FEAT_SVE_PMULL128 */

Loading…
Cancel
Save