ARM11_HANDLER(assert_reset),
ARM11_HANDLER(deassert_reset),
ARM11_HANDLER(soft_reset_halt),
- ARM11_HANDLER(prepare_reset_halt),
ARM11_HANDLER(get_gdb_reg_list),
ARM11_HANDLER(register_commands),
ARM11_HANDLER(target_command),
ARM11_HANDLER(init_target),
+ ARM11_HANDLER(examine),
ARM11_HANDLER(quit),
};
if (target->state == TARGET_HALTED)
{
- LOG_WARNING("target was already halted");
- return ERROR_OK;
+ LOG_DEBUG("target was already halted");
+ return ERROR_OK;
}
if (arm11->trst_active)
return ERROR_OK;
}
-int arm11_prepare_reset_halt(struct target_s *target)
-{
- FNC_INFO_NOTIMPLEMENTED;
-
- return ERROR_OK;
-}
/* target register access for gdb */
}
int arm11_init_target(struct command_context_s *cmd_ctx, struct target_s *target)
+{
+ /* Initialize anything we can set up without talking to the target */
+ return ERROR_OK;
+}
+
+/* talk to the target and set things up */
+int arm11_examine(struct command_context_s *cmd_ctx, struct target_s *target)
{
FNC_INFO;
if (values[i] > arm11_coproc_instruction_limits[i])
{
- LOG_ERROR("Parameter %d out of bounds (%d max). %s",
+ LOG_ERROR("Parameter %ld out of bounds (%d max). %s",
i + 2, arm11_coproc_instruction_limits[i],
read ? arm11_mrc_syntax : arm11_mcr_syntax);
return -1;