cortexm.c/cortexm_halt_resume: Add some clock cycles to always get CPU going (#768)

This commit is contained in:
Uwe Bonnes 2020-11-01 21:26:28 +01:00 committed by UweBonnes
parent d75f3124b9
commit 2c33cde63f
1 changed files with 2 additions and 0 deletions

View File

@ -835,6 +835,8 @@ static void cortexm_halt_resume(target *t, bool step)
target_mem_write32(t, CORTEXM_ICIALLU, 0);
target_mem_write32(t, CORTEXM_DHCSR, dhcsr);
/* Add some clock cycles to get the CPU running again.*/
target_mem_read32(t, 0);
}
static int cortexm_fault_unwind(target *t)