target/arm: Fix incorrect aa64_tidcp1 feature check
commitee0a2e3c9d2991a11c13ffadb15e4d0add43c257
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 23 Jan 2024 16:03:33 +0000 (23 16:03 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 26 Jan 2024 12:20:03 +0000 (26 12:20 +0000)
tree98fbca219e8a3cd08a0ce3f464eb6ee3aacbfa63
parent18281b257801947bb0b23c02df87d6acd92c6910
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: qemu-stable@nongnu.org
Fixes: 9cd0c0dec97be9 "target/arm: Implement FEAT_TIDCP1"
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2120
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20240123160333.958841-1-peter.maydell@linaro.org
target/arm/cpu-features.h