target: remove unimplemented soft_reset_halt implementations
Let the default handler issue an unsupported warning rather than using empty handler routines that may/may not issue a unsupported warning. Change-Id: Iafe3e45146981a4cfae39771c3ab7370ac86da48 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/1535 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-by: Hsiangkai Wang <hsiangkai@gmail.com>
This commit is contained in:
@@ -42,7 +42,6 @@ static int avr_step(struct target *target, int current, uint32_t address,
|
||||
|
||||
static int avr_assert_reset(struct target *target);
|
||||
static int avr_deassert_reset(struct target *target);
|
||||
static int avr_soft_reset_halt(struct target *target);
|
||||
|
||||
/* IR and DR functions */
|
||||
static int mcu_write_ir(struct jtag_tap *tap, uint8_t *ir_in, uint8_t *ir_out, int ir_len, int rti);
|
||||
@@ -64,7 +63,6 @@ struct target_type avr_target = {
|
||||
|
||||
.assert_reset = avr_assert_reset,
|
||||
.deassert_reset = avr_deassert_reset,
|
||||
.soft_reset_halt = avr_soft_reset_halt,
|
||||
/*
|
||||
.get_gdb_reg_list = avr_get_gdb_reg_list,
|
||||
|
||||
@@ -151,12 +149,6 @@ static int avr_deassert_reset(struct target *target)
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int avr_soft_reset_halt(struct target *target)
|
||||
{
|
||||
LOG_DEBUG("%s", __func__);
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
int avr_jtag_senddat(struct jtag_tap *tap, uint32_t* dr_in, uint32_t dr_out,
|
||||
int len)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user