X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Farm720t.c;h=01ccf304cfe5227dacbccb4b19c9a2b3f8161605;hb=996613522df32870b23e68d8d63e523908694598;hp=6ce798075479eba9a1abdf9aef26ee8818120b99;hpb=583a293a326bcb4b7438871d492cd85c143e3fa1;p=openocd.git diff --git a/src/target/arm720t.c b/src/target/arm720t.c index 6ce7980754..01ccf304cf 100644 --- a/src/target/arm720t.c +++ b/src/target/arm720t.c @@ -44,7 +44,7 @@ static int arm720t_scan_cp15(target_t *target, int retval; struct arm720t_common_s *arm720t = target_to_arm720(target); arm_jtag_t *jtag_info; - scan_field_t fields[2]; + struct scan_field fields[2]; uint8_t out_buf[4]; uint8_t instruction_buf = instruction; @@ -377,7 +377,7 @@ static int arm720t_init_target(struct command_context_s *cmd_ctx, struct target_ } static int arm720t_init_arch_info(target_t *target, - arm720t_common_t *arm720t, jtag_tap_t *tap) + arm720t_common_t *arm720t, struct jtag_tap *tap) { arm7tdmi_common_t *arm7tdmi = &arm720t->arm7tdmi_common; arm7_9_common_t *arm7_9 = &arm7tdmi->arm7_9_common; @@ -409,8 +409,7 @@ static int arm720t_target_create(struct target_s *target, Jim_Interp *interp) return arm720t_init_arch_info(target, arm720t, target->tap); } -static int arm720t_handle_cp15_command(struct command_context_s *cmd_ctx, - char *cmd, char **args, int argc) +COMMAND_HANDLER(arm720t_handle_cp15_command) { int retval; target_t *target = get_current_target(cmd_ctx); @@ -425,7 +424,7 @@ static int arm720t_handle_cp15_command(struct command_context_s *cmd_ctx, if (target->state != TARGET_HALTED) { - command_print(cmd_ctx, "target must be stopped for \"%s\" command", cmd); + command_print(cmd_ctx, "target must be stopped for \"%s\" command", CMD_NAME); return ERROR_OK; }