- explicitly disable monitor mode on ARM7/9 targets

- added "prepare_reset_halt()" to target_type_t, which allows reset_halt to be prepared before a reset is asserted, possibly preventing communication with the target
- arm7/9 devices now use a breakpoint at 0x0 or reset vector catching for debug out of reset


git-svn-id: svn://svn.berlios.de/openocd/trunk@141 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
drath
2007-04-16 14:58:16 +00:00
parent c62e5b4c23
commit 04dc98916d
12 changed files with 107 additions and 18 deletions

View File

@@ -247,7 +247,23 @@ int target_process_reset(struct command_context_s *cmd_ctx)
{
int retval = ERROR_OK;
target_t *target;
/* prepare reset_halt where necessary */
target = targets;
while (target)
{
switch (target->reset_mode)
{
case RESET_HALT:
case RESET_INIT:
target->type->prepare_reset_halt(target);
break;
default:
break;
}
target = target->next;
}
target = targets;
while (target)
{