From 1533d14e043bdaa1ed3c26807c2657a1bd8113d7 Mon Sep 17 00:00:00 2001 From: Mary Guillemard Date: Sun, 8 Dec 2024 21:37:11 +0100 Subject: [PATCH] cortexar: fix typo in cortexar_check_error This should have been clearing data and mmu fault flags. Signed-off-by: Mary Guillemard Fixes: 56f744eb7950 ("cortexar: Implemented caching for the fault information, doubling memory IO performance") --- src/target/cortexar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/cortexar.c b/src/target/cortexar.c index 42747050c60..ee56aad07bb 100644 --- a/src/target/cortexar.c +++ b/src/target/cortexar.c @@ -995,7 +995,7 @@ static bool cortexar_check_error(target_s *const target) { cortexar_priv_s *const priv = (cortexar_priv_s *)target->priv; const bool fault = priv->core_status & (CORTEXAR_STATUS_DATA_FAULT | CORTEXAR_STATUS_MMU_FAULT); - priv->core_status = (uint8_t) ~(CORTEXAR_STATUS_DATA_FAULT | CORTEXAR_STATUS_MMU_FAULT); + priv->core_status &= (uint8_t) ~(CORTEXAR_STATUS_DATA_FAULT | CORTEXAR_STATUS_MMU_FAULT); return fault || cortex_check_error(target); }