cortexa: Flush I-Cache on detach.

This commit is contained in:
Gareth McMullin 2016-06-10 09:36:32 +12:00
parent 6b3c3d3473
commit 60c67ee156
1 changed files with 2 additions and 0 deletions

View File

@ -334,6 +334,8 @@ void cortexa_detach(target *t)
/* Restore any clobbered registers */
cortexa_regs_write_internal(t);
/* Invalidate cache */
apb_write(t, DBGITR, MCR | ICIALLU);
uint32_t dbgdscr = apb_read(t, DBGDSCR);
/* Disable halting debug mode */