ARMv7M: use software breakpoints for algorithms

- armv7m_run_algorithm now requires all algorithms to use
   a software breakpoint at their exit address
 - updated all algorithms to support this

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
This commit is contained in:
Spencer Oliver
2010-02-02 13:22:07 +00:00
parent 0324eb2496
commit a851ce0d6f
5 changed files with 9 additions and 26 deletions

View File

@@ -267,7 +267,7 @@ static int lpc2000_iap_call(struct flash_bank *bank, int code, uint32_t param_ta
target_buffer_set_u32(target, jump_gate,
ARMV4_5_T_BX(12));
target_buffer_set_u32(target, jump_gate + 4,
ARMV4_5_T_B(0xfffffe));
ARMV5_T_BKPT(0));
break;
case lpc2000_v1:
case lpc2000_v2: