From: Spencer Oliver <ntfr...@users.sourceforge.net>

As the mips32 uses instruction breakpoints for algorithms we do not really
need to check the pc on exit.

This now matches the behaviour of the arm codebase.

Signed-off-by: Spencer Oliver <ntfr...@users.sourceforge.net>
---
 src/target/mips32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/target/mips32.c b/src/target/mips32.c
index 2547b01..24cd7d9 100644
--- a/src/target/mips32.c
+++ b/src/target/mips32.c
@@ -348,7 +348,7 @@ static int mips32_run_and_wait(struct target *target, 
uint32_t entry_point,
        }
 
        pc = buf_get_u32(mips32->core_cache->reg_list[MIPS32_PC].value, 0, 32);
-       if (pc != exit_point)
+       if (exit_point && (pc != exit_point))
        {
                LOG_DEBUG("failed algoritm halted at 0x%" PRIx32 " ", pc);
                return ERROR_TARGET_TIMEOUT;
-- 
1.7.1
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to