[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/9] target/arm: Fix MTE check in sve_ldnfff1_r
From: |
Peter Maydell |
Subject: |
[PULL 2/9] target/arm: Fix MTE check in sve_ldnfff1_r |
Date: |
Thu, 7 Jul 2022 13:27:27 +0100 |
From: Richard Henderson <richard.henderson@linaro.org>
The comment was correct, but the test was not:
disable mte if tagged is *not* set.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
target/arm/sve_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/arm/sve_helper.c b/target/arm/sve_helper.c
index 1654c0bbf9e..db15d03ded8 100644
--- a/target/arm/sve_helper.c
+++ b/target/arm/sve_helper.c
@@ -5986,7 +5986,7 @@ void sve_ldnfff1_r(CPUARMState *env, void *vg, const
target_ulong addr,
* Disable MTE checking if the Tagged bit is not set. Since TBI must
* be set within MTEDESC for MTE, !mtedesc => !mte_active.
*/
- if (arm_tlb_mte_tagged(&info.page[0].attrs)) {
+ if (!arm_tlb_mte_tagged(&info.page[0].attrs)) {
mtedesc = 0;
}
--
2.25.1
- [PULL 0/9] target-arm queue, Peter Maydell, 2022/07/07
- [PULL 1/9] hw/arm/virt: dt: add rng-seed property, Peter Maydell, 2022/07/07
- [PULL 2/9] target/arm: Fix MTE check in sve_ldnfff1_r,
Peter Maydell <=
- [PULL 3/9] target/arm: Record tagged bit for user-only in sve_probe_page, Peter Maydell, 2022/07/07
- [PULL 4/9] target/arm: Fix code style issues in debug helper functions, Peter Maydell, 2022/07/07
- [PULL 6/9] target/arm: Suppress debug exceptions when OS Lock set, Peter Maydell, 2022/07/07
- [PULL 7/9] target/arm: Implement AArch32 DBGDEVID, DBGDEVID1, DBGDEVID2, Peter Maydell, 2022/07/07
- [PULL 5/9] target/arm: Move define_debug_regs() to debug_helper.c, Peter Maydell, 2022/07/07
- [PULL 9/9] target/arm: Fix qemu-system-arm handling of LPAE block descriptors for highmem, Peter Maydell, 2022/07/07
- [PULL 8/9] target/arm: Correctly implement Feat_DoubleLock, Peter Maydell, 2022/07/07
- Re: [PULL 0/9] target-arm queue, Richard Henderson, 2022/07/07