]> git.sur5r.net Git - openocd/blobdiff - src/target/arm7_9_common.c
retire daemon_startup
[openocd] / src / target / arm7_9_common.c
index a57fbb5ee46249f15259f6f1e3149a2f22bc02cb..563f470159682725ed59be87f5980a19c1e6d63a 100644 (file)
@@ -704,7 +704,7 @@ int arm7_9_poll(target_t *target)
                        int check_pc=0;
                        if (target->state == TARGET_RESET)
                        {
-                               if ((target->reset_mode == RESET_HALT) || (target->reset_mode == RESET_INIT))
+                               if (target->reset_halt)
                                {
                                        if ((jtag_reset_config & RESET_SRST_PULLS_TRST)==0)
                                        {
@@ -772,7 +772,7 @@ int arm7_9_assert_reset(target_t *target)
                return ERROR_FAIL;
        }
 
-       if ((target->reset_mode == RESET_HALT) || (target->reset_mode == RESET_INIT))
+       if (target->reset_halt)
        {
                /*
                 * Some targets do not support communication while SRST is asserted. We need to