Skip to content

Commit 45b3ce5

Browse files
pm215Michael Tokarev
authored andcommitted
target/arm: Fix incorrect aa64_tidcp1 feature check
A typo in the implementation of isar_feature_aa64_tidcp1() means we were checking the field in the wrong ID register, so we might have provided the feature on CPUs that don't have it and not provided it on CPUs that should have it. Correct this bug. Cc: [email protected] Fixes: 9cd0c0d "target/arm: Implement FEAT_TIDCP1" Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2120 Signed-off-by: Peter Maydell <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-id: [email protected] (cherry picked from commit ee0a2e3) Signed-off-by: Michael Tokarev <[email protected]>
1 parent 570e624 commit 45b3ce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target/arm/cpu-features.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ static inline bool isar_feature_aa64_hcx(const ARMISARegisters *id)
771771

772772
static inline bool isar_feature_aa64_tidcp1(const ARMISARegisters *id)
773773
{
774-
return FIELD_EX64(id->id_aa64mmfr2, ID_AA64MMFR1, TIDCP1) != 0;
774+
return FIELD_EX64(id->id_aa64mmfr1, ID_AA64MMFR1, TIDCP1) != 0;
775775
}
776776

777777
static inline bool isar_feature_aa64_hafs(const ARMISARegisters *id)

0 commit comments

Comments
 (0)