summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-07-19 20:28:30 +0100
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-07-20 09:02:27 +0100
commit7176ed9afe0972ca768d6aabc8e58418d6f91286 (patch)
tree0267084ca42f2f331e67d3e14f4d6321464ea006 /src
parentf0c0256b1f05a04a58d857e9d865a0be0dd1680d (diff)
downloadopenocd_libswd-7176ed9afe0972ca768d6aabc8e58418d6f91286.tar.gz
openocd_libswd-7176ed9afe0972ca768d6aabc8e58418d6f91286.tar.bz2
openocd_libswd-7176ed9afe0972ca768d6aabc8e58418d6f91286.tar.xz
openocd_libswd-7176ed9afe0972ca768d6aabc8e58418d6f91286.zip
armv7m: exit_point optional for armv7m_run_algorithm
As the armv7m uses instruction breakpoints for algorithms we do not really need to check the pc on exit. This now matches the behaviour of the arm4_5 codebase. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/target/armv7m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/armv7m.c b/src/target/armv7m.c
index bd5aa147..a73a9bb4 100644
--- a/src/target/armv7m.c
+++ b/src/target/armv7m.c
@@ -313,7 +313,7 @@ static int armv7m_run_and_wait(struct target *target, uint32_t entry_point, int
}
armv7m->load_core_reg_u32(target, ARMV7M_REGISTER_CORE_GP, 15, &pc);
- if (pc != exit_point)
+ if (exit_point && (pc != exit_point))
{
LOG_DEBUG("failed algoritm halted at 0x%" PRIx32 " ", pc);
return ERROR_TARGET_TIMEOUT;