Skip to content

Commit

Permalink
cortexar: fix typo in cortexar_check_error
Browse files Browse the repository at this point in the history
This should have been clearing data and mmu fault flags.

Signed-off-by: Mary Guillemard <mary@mary.zone>
Fixes: 56f744e ("cortexar: Implemented caching for the fault information, doubling memory IO performance")
  • Loading branch information
marysaka committed Dec 8, 2024
1 parent b547574 commit 1533d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/cortexar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 1533d14

Please sign in to comment.