]> git.sur5r.net Git - openocd/commitdiff
- fix issue when target is already halted
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 26 Feb 2008 19:56:45 +0000 (19:56 +0000)
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 26 Feb 2008 19:56:45 +0000 (19:56 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@355 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/arm7_9_common.c

index af0205d6855b8371d6560dadbf1d63a77e53c337..51f4c682b6237343d51a789d9c15ce046a78f261 100644 (file)
@@ -700,6 +700,7 @@ int arm7_9_poll(target_t *target)
                DEBUG("DBGACK set, dbg_state->value: 0x%x", buf_get_u32(dbg_stat->value, 0, 32));
                if (target->state == TARGET_UNKNOWN)
                {
+                       target->state = TARGET_RUNNING;
                        WARNING("DBGACK set while target was in unknown state. Reset or initialize target.");
                }
                if ((target->state == TARGET_RUNNING) || (target->state == TARGET_RESET))