]> git.sur5r.net Git - openocd/commitdiff
mips32: exit_point optional for mips32_run_algorithm
authorSpencer Oliver <ntfreak@users.sourceforge.net>
Mon, 19 Jul 2010 19:29:16 +0000 (20:29 +0100)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Tue, 20 Jul 2010 08:02:35 +0000 (09:02 +0100)
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 <ntfreak@users.sourceforge.net>
src/target/mips32.c

index 2547b011a9914354283b825bd878886362136b97..24cd7d954a973d2743da415c4e2f7b6ea09fb721 100644 (file)
@@ -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;