Skip to content

Commit 23f5b02

Browse files
rth7680pm215
authored andcommitted
target/arm: Enable FEAT_LSE128 for -cpu max
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20250815122653.701782-8-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
1 parent 99e4411 commit 23f5b02

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

docs/system/arm/emulation.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ the following architecture extensions:
8989
- FEAT_LRCPC2 (Load-acquire RCpc instructions v2)
9090
- FEAT_LSE (Large System Extensions)
9191
- FEAT_LSE2 (Large System Extensions v2)
92+
- FEAT_LSE128 (128-bit Atomics)
9293
- FEAT_LVA (Large Virtual Address space)
9394
- FEAT_MixedEnd (Mixed-endian support)
9495
- FEAT_MixedEndEL0 (Mixed-endian support at EL0)

linux-user/aarch64/elfload.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ abi_ulong get_elf_hwcap2(CPUState *cs)
216216
GET_FEATURE_ID(aa64_sme_f16f16, ARM_HWCAP2_A64_SME_F16F16);
217217
GET_FEATURE_ID(aa64_sve_b16b16, ARM_HWCAP2_A64_SVE_B16B16);
218218
GET_FEATURE_ID(aa64_cssc, ARM_HWCAP2_A64_CSSC);
219+
GET_FEATURE_ID(aa64_lse128, ARM_HWCAP2_A64_LSE128);
219220

220221
return hwcaps;
221222
}

target/arm/tcg/cpu64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ void aarch64_max_tcg_initfn(Object *obj)
11451145
t = FIELD_DP64(t, ID_AA64ISAR0, SHA1, 1); /* FEAT_SHA1 */
11461146
t = FIELD_DP64(t, ID_AA64ISAR0, SHA2, 2); /* FEAT_SHA512 */
11471147
t = FIELD_DP64(t, ID_AA64ISAR0, CRC32, 1); /* FEAT_CRC32 */
1148-
t = FIELD_DP64(t, ID_AA64ISAR0, ATOMIC, 2); /* FEAT_LSE */
1148+
t = FIELD_DP64(t, ID_AA64ISAR0, ATOMIC, 3); /* FEAT_LSE, FEAT_LSE128 */
11491149
t = FIELD_DP64(t, ID_AA64ISAR0, RDM, 1); /* FEAT_RDM */
11501150
t = FIELD_DP64(t, ID_AA64ISAR0, SHA3, 1); /* FEAT_SHA3 */
11511151
t = FIELD_DP64(t, ID_AA64ISAR0, SM3, 1); /* FEAT_SM3 */

0 commit comments

Comments
 (0)