From 0ea768b4d4799978c69a12e5e0d719569e4c7005 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Wed, 27 Sep 2023 12:43:58 +0100 Subject: [PATCH] cortexa: Drop the core out of halting debug mode if resuming and it's not for single-stepping --- src/target/cortexa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/cortexa.c b/src/target/cortexa.c index 1ddf9d946b0..00356c3cd7b 100644 --- a/src/target/cortexa.c +++ b/src/target/cortexa.c @@ -950,7 +950,7 @@ void cortexa_halt_resume(target_s *t, bool step) if (step) dbgdscr |= DBGDSCR_INTDIS; else - dbgdscr &= ~DBGDSCR_INTDIS; + dbgdscr &= ~(DBGDSCR_INTDIS | CORTEXAR_DBG_DSCR_HALT_DBG_ENABLE); dbgdscr &= ~CORTEXAR_DBG_DSCR_ITR_ENABLE; cortex_dbg_write32(t, CORTEXAR_DBG_DSCR, dbgdscr);