define resetting the target into the halted or running

state as an atomic operation.

git-svn-id: svn://svn.berlios.de/openocd/trunk@888 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
oharboe
2008-08-05 07:11:12 +00:00
parent 3a48961820
commit 1829361253
6 changed files with 37 additions and 39 deletions

View File

@@ -308,18 +308,6 @@ int target_process_reset(struct command_context_s *cmd_ctx, enum target_reset_mo
target = target->next;
}
/* request target halt if necessary, and schedule further action */
target = targets;
while (target)
{
if (reset_mode!=RESET_RUN)
{
if ((retval = target_halt(target))!=ERROR_OK)
return retval;
}
target = target->next;
}
target = targets;
while (target)
{