[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 35/36] target/arm: Fix incorrect aa64_tidcp1 feature check
|
From: |
Peter Maydell |
|
Subject: |
[PULL 35/36] target/arm: Fix incorrect aa64_tidcp1 feature check |
|
Date: |
Fri, 26 Jan 2024 14:33:40 +0000 |
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/arm/cpu-features.h b/target/arm/cpu-features.h
index 028795ff23f..7567854db63 100644
--- a/target/arm/cpu-features.h
+++ b/target/arm/cpu-features.h
@@ -773,7 +773,7 @@ static inline bool isar_feature_aa64_hcx(const
ARMISARegisters *id)
static inline bool isar_feature_aa64_tidcp1(const ARMISARegisters *id)
{
- return FIELD_EX64(id->id_aa64mmfr2, ID_AA64MMFR1, TIDCP1) != 0;
+ return FIELD_EX64(id->id_aa64mmfr1, ID_AA64MMFR1, TIDCP1) != 0;
}
static inline bool isar_feature_aa64_hafs(const ARMISARegisters *id)
--
2.34.1
- [PULL 30/36] fsl-imx6ul: Add various missing unimplemented devices, (continued)
- [PULL 30/36] fsl-imx6ul: Add various missing unimplemented devices, Peter Maydell, 2024/01/26
- [PULL 24/36] target/arm: Expose M-profile register bank index definitions, Peter Maydell, 2024/01/26
- [PULL 27/36] target/arm: Move e2h_access() helper around, Peter Maydell, 2024/01/26
- [PULL 26/36] target/arm: Move ARM_CPU_IRQ/FIQ definitions to 'cpu-qom.h' header, Peter Maydell, 2024/01/26
- [PULL 28/36] target/arm: Move GTimer definitions to new 'gtimer.h' header, Peter Maydell, 2024/01/26
- [PULL 29/36] hw/arm: Build various units only once, Peter Maydell, 2024/01/26
- [PULL 32/36] hw/char/imx_serial: Implement receive FIFO and ageing timer, Peter Maydell, 2024/01/26
- [PULL 36/36] hw/arm: add PCIe to Freescale i.MX6, Peter Maydell, 2024/01/26
- [PULL 31/36] docs/system/arm/virt.rst: Add note on CPU features off by default, Peter Maydell, 2024/01/26
- [PULL 33/36] target/arm: Fix A64 scalar SQSHRN and SQRSHRN, Peter Maydell, 2024/01/26
- [PULL 35/36] target/arm: Fix incorrect aa64_tidcp1 feature check,
Peter Maydell <=
- [PULL 34/36] bswap.h: Fix const_le64() macro, Peter Maydell, 2024/01/26
- Re: [PULL 00/36] target-arm queue, Peter Maydell, 2024/01/27