target: remove unimplemented soft_reset_halt implementations
authorSpencer Oliver <spen@spen-soft.co.uk>
Fri, 2 Aug 2013 11:14:37 +0000 (12:14 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Sun, 8 Sep 2013 16:12:20 +0000 (16:12 +0000)
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>
src/target/arm11.c
src/target/avr32_ap7k.c
src/target/avrt.c
src/target/cortex_a.c
src/target/dsp563xx.c
src/target/hla_target.c
src/target/mips_m4k.c
src/target/xscale.c

index 1ff623499b7551c8e7da483f5201e1a86efe29a2..416471d82c72fd377baac8caf6efe743d68fc8e2 100644 (file)
@@ -771,13 +771,6 @@ static int arm11_deassert_reset(struct target *target)
        return ERROR_OK;
 }
 
-static int arm11_soft_reset_halt(struct target *target)
-{
-       LOG_WARNING("Not implemented: %s", __func__);
-
-       return ERROR_FAIL;
-}
-
 /* target memory access
  * size: 1 = byte (8bit), 2 = half-word (16bit), 4 = word (32bit)
  * count: number of items of <size>
@@ -1348,7 +1341,6 @@ struct target_type arm11_target = {
 
        .assert_reset = arm11_assert_reset,
        .deassert_reset = arm11_deassert_reset,
-       .soft_reset_halt = arm11_soft_reset_halt,
 
        .get_gdb_reg_list = arm_get_gdb_reg_list,
 
index 7c97234df0dc0fddfbc3795d345d8a51eed932de..1e9fcbfc44e393ea6a7879a19995598fb04c38ce 100644 (file)
@@ -313,13 +313,6 @@ static int avr32_ap7k_deassert_reset(struct target *target)
        return ERROR_OK;
 }
 
-static int avr32_ap7k_soft_reset_halt(struct target *target)
-{
-       LOG_ERROR("%s: implement me", __func__);
-
-       return ERROR_OK;
-}
-
 static int avr32_ap7k_resume(struct target *target, int current,
        uint32_t address, int handle_breakpoints, int debug_execution)
 {
@@ -600,8 +593,6 @@ int avr32_ap7k_get_gdb_reg_list(struct target *target, struct reg **reg_list[],
        return ERROR_FAIL;
 }
 
-
-
 struct target_type avr32_ap7k_target = {
        .name = "avr32_ap7k",
 
@@ -616,7 +607,6 @@ struct target_type avr32_ap7k_target = {
 
        .assert_reset = avr32_ap7k_assert_reset,
        .deassert_reset = avr32_ap7k_deassert_reset,
-       .soft_reset_halt = avr32_ap7k_soft_reset_halt,
 
        .get_gdb_reg_list = avr32_ap7k_get_gdb_reg_list,
 
index 4f959e3c555839312961b0038830843f07776e20..48727082a2faf02528d54605315cdec06d07cd71 100644 (file)
@@ -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)
 {
index 969158077cfa842a77f1e1c939f15a727ba0dde8..c91da3bc7d731ec68d073ba5b661e0e668c8052b 100644 (file)
@@ -2772,7 +2772,6 @@ struct target_type cortexa8_target = {
 
        .assert_reset = cortex_a8_assert_reset,
        .deassert_reset = cortex_a8_deassert_reset,
-       .soft_reset_halt = NULL,
 
        /* REVISIT allow exporting VFP3 registers ... */
        .get_gdb_reg_list = arm_get_gdb_reg_list,
@@ -2852,7 +2851,6 @@ struct target_type cortexr4_target = {
 
        .assert_reset = cortex_a8_assert_reset,
        .deassert_reset = cortex_a8_deassert_reset,
-       .soft_reset_halt = NULL,
 
        /* REVISIT allow exporting VFP3 registers ... */
        .get_gdb_reg_list = arm_get_gdb_reg_list,
index 8c470168684edad104fb9a35a7ceb3cf51e72f82..813975b6ca472b4051c72c10c587c849afaa6414 100644 (file)
@@ -1373,12 +1373,6 @@ static int dsp563xx_deassert_reset(struct target *target)
        return ERROR_OK;
 }
 
-static int dsp563xx_soft_reset_halt(struct target *target)
-{
-       LOG_DEBUG("%s", __func__);
-       return ERROR_OK;
-}
-
 static int dsp563xx_run_algorithm(struct target *target,
        int num_mem_params, struct mem_param *mem_params,
        int num_reg_params, struct reg_param *reg_params,
@@ -2328,7 +2322,6 @@ struct target_type dsp563xx_target = {
 
        .assert_reset = dsp563xx_assert_reset,
        .deassert_reset = dsp563xx_deassert_reset,
-       .soft_reset_halt = dsp563xx_soft_reset_halt,
 
        .read_memory = dsp563xx_read_memory_default,
        .write_memory = dsp563xx_write_memory_default,
index 5d31c7a2d299a72f599a072257b2b8473847f89c..41fe45e6c8781cd8d93b8d26831b1891d3a6b4f6 100644 (file)
@@ -586,12 +586,6 @@ static int adapter_deassert_reset(struct target *target)
        return target->reset_halt ? ERROR_OK : target_resume(target, 1, 0, 0, 0);
 }
 
-static int adapter_soft_reset_halt(struct target *target)
-{
-       LOG_DEBUG("%s", __func__);
-       return ERROR_OK;
-}
-
 static int adapter_halt(struct target *target)
 {
        int res;
@@ -890,7 +884,6 @@ struct target_type hla_target = {
        .target_request_data = hl_target_request_data,
        .assert_reset = adapter_assert_reset,
        .deassert_reset = adapter_deassert_reset,
-       .soft_reset_halt = adapter_soft_reset_halt,
 
        .halt = adapter_halt,
        .resume = adapter_resume,
index 49edad184a1d32e01b3bfdcc4be727805f5423ef..1cded6b4f668991c118a72ebb2d7231146b9f164 100644 (file)
@@ -370,12 +370,6 @@ static int mips_m4k_deassert_reset(struct target *target)
        return ERROR_OK;
 }
 
-static int mips_m4k_soft_reset_halt(struct target *target)
-{
-       /* TODO */
-       return ERROR_OK;
-}
-
 static int mips_m4k_single_step_core(struct target *target)
 {
        struct mips32_common *mips32 = target_to_mips32(target);
@@ -1398,7 +1392,6 @@ struct target_type mips_m4k_target = {
 
        .assert_reset = mips_m4k_assert_reset,
        .deassert_reset = mips_m4k_deassert_reset,
-       .soft_reset_halt = mips_m4k_soft_reset_halt,
 
        .get_gdb_reg_list = mips32_get_gdb_reg_list,
 
index ed2afa461e75c3ba8d277dded14ee2c41017d565..120988caee6fe6f2fbf1b6ac8578a6e2fef2601b 100644 (file)
@@ -3721,7 +3721,6 @@ struct target_type xscale_target = {
 
        .assert_reset = xscale_assert_reset,
        .deassert_reset = xscale_deassert_reset,
-       .soft_reset_halt = NULL,
 
        /* REVISIT on some cores, allow exporting iwmmxt registers ... */
        .get_gdb_reg_list = arm_get_gdb_reg_list,