target/arm: Enable FEAT_CMPBR for -cpu max
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20260518174750.660258-5-richard.henderson@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Richard Henderson committed
May 18, 2026 at 10:47 UTC
5e18eaab88f7881f22c9a3b187c8a3f06b71b402
3 files changed
+3
-1
docs/system/arm/emulation.rst
+1
@@ -35,6 +35,7 @@ the following architecture extensions:
35
- FEAT_CCIDX (Extended cache index)
36
- FEAT_CHK (Check Feature Status)
37
- FEAT_CMOW (Control for cache maintenance permission)
38
+- FEAT_CMPBR (Compare and Branch instructions)
39
- FEAT_CRC32 (CRC32 instructions)
40
- FEAT_Crypto (Cryptographic Extension)
41
- FEAT_CSSC (Common Short Sequence Compression instructions)
linux-user/aarch64/elfload.c
+1
@@ -170,6 +170,7 @@ abi_ulong get_elf_hwcap(CPUState *cs)
170
GET_FEATURE_ID(aa64_rcpc_8_3, ARM_HWCAP_A64_LRCPC);
171
GET_FEATURE_ID(aa64_rcpc_8_4, ARM_HWCAP_A64_ILRCPC);
172
GET_FEATURE_ID(aa64_gcs, ARM_HWCAP_A64_GCS);
173
+ GET_FEATURE_ID(aa64_cmpbr, ARM_HWCAP_A64_CMPBR);
174
175
return hwcaps;
176
}
target/arm/tcg/cpu64.c
+1
-1
@@ -1262,7 +1262,7 @@ void aarch64_max_tcg_initfn(Object *obj)
1262
t = FIELD_DP64(t, ID_AA64ISAR2, MOPS, 1); /* FEAT_MOPS */
1263
t = FIELD_DP64(t, ID_AA64ISAR2, BC, 1); /* FEAT_HBC */
1264
t = FIELD_DP64(t, ID_AA64ISAR2, WFXT, 2); /* FEAT_WFxT */
1265
- t = FIELD_DP64(t, ID_AA64ISAR2, CSSC, 1); /* FEAT_CSSC */
1265
+ t = FIELD_DP64(t, ID_AA64ISAR2, CSSC, 2); /* FEAT_CSSC, FEAT_CMPBR */
1266
t = FIELD_DP64(t, ID_AA64ISAR2, ATS1A, 1); /* FEAT_ATS1A */
1267
SET_IDREG(isar, ID_AA64ISAR2, t);
1268