forked from auracaster/openocd
target: drop unused parameter to target_create()
The parameter Jim_Interp to the target API target_create() is not used by any target. Drop it. Change-Id: I67c492078a6c808db974505f9e297c45165f64d0 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8831 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
@@ -2814,7 +2814,7 @@ static int aarch64_init_arch_info(struct target *target,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int armv8r_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int armv8r_target_create(struct target *target)
|
||||
{
|
||||
struct aarch64_private_config *pc = target->private_config;
|
||||
struct aarch64_common *aarch64;
|
||||
@@ -2833,7 +2833,7 @@ static int armv8r_target_create(struct target *target, Jim_Interp *interp)
|
||||
return aarch64_init_arch_info(target, aarch64, pc->adiv5_config.dap);
|
||||
}
|
||||
|
||||
static int aarch64_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int aarch64_target_create(struct target *target)
|
||||
{
|
||||
struct aarch64_private_config *pc = target->private_config;
|
||||
struct aarch64_common *aarch64;
|
||||
|
||||
@@ -1424,7 +1424,7 @@ static void arc_deinit_target(struct target *target)
|
||||
}
|
||||
|
||||
|
||||
static int arc_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int arc_target_create(struct target *target)
|
||||
{
|
||||
struct arc_common *arc = calloc(1, sizeof(*arc));
|
||||
|
||||
|
||||
@@ -1079,7 +1079,7 @@ static int arm11_remove_breakpoint(struct target *target,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int arm11_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int arm11_target_create(struct target *target)
|
||||
{
|
||||
struct arm11_common *arm11;
|
||||
|
||||
|
||||
@@ -412,7 +412,7 @@ static int arm720t_init_arch_info(struct target *target,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int arm720t_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int arm720t_target_create(struct target *target)
|
||||
{
|
||||
struct arm720t_common *arm720t = calloc(1, sizeof(*arm720t));
|
||||
|
||||
|
||||
@@ -669,7 +669,7 @@ int arm7tdmi_init_arch_info(struct target *target,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int arm7tdmi_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int arm7tdmi_target_create(struct target *target)
|
||||
{
|
||||
struct arm7_9_common *arm7_9;
|
||||
|
||||
|
||||
@@ -833,7 +833,7 @@ static int arm920t_init_arch_info(struct target *target,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int arm920t_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int arm920t_target_create(struct target *target)
|
||||
{
|
||||
struct arm920t_common *arm920t;
|
||||
|
||||
|
||||
@@ -702,7 +702,7 @@ int arm926ejs_init_arch_info(struct target *target, struct arm926ejs_common *arm
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int arm926ejs_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int arm926ejs_target_create(struct target *target)
|
||||
{
|
||||
struct arm926ejs_common *arm926ejs = calloc(1, sizeof(struct arm926ejs_common));
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ static int arm946e_init_arch_info(struct target *target,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int arm946e_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int arm946e_target_create(struct target *target)
|
||||
{
|
||||
struct arm946e_common *arm946e = calloc(1, sizeof(struct arm946e_common));
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ int arm966e_init_arch_info(struct target *target, struct arm966e_common *arm966e
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int arm966e_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int arm966e_target_create(struct target *target)
|
||||
{
|
||||
struct arm966e_common *arm966e = calloc(1, sizeof(struct arm966e_common));
|
||||
|
||||
|
||||
@@ -765,7 +765,7 @@ int arm9tdmi_init_arch_info(struct target *target,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int arm9tdmi_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int arm9tdmi_target_create(struct target *target)
|
||||
{
|
||||
struct arm7_9_common *arm7_9 = calloc(1, sizeof(struct arm7_9_common));
|
||||
|
||||
|
||||
@@ -510,7 +510,7 @@ static int avr32_ap7k_init_target(struct command_context *cmd_ctx,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int avr32_ap7k_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int avr32_ap7k_target_create(struct target *target)
|
||||
{
|
||||
struct avr32_ap7k_common *ap7k = calloc(1, sizeof(struct
|
||||
avr32_ap7k_common));
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#define AVR_JTAG_INS_LEN 4
|
||||
|
||||
/* forward declarations */
|
||||
static int avr_target_create(struct target *target, Jim_Interp *interp);
|
||||
static int avr_target_create(struct target *target);
|
||||
static int avr_init_target(struct command_context *cmd_ctx, struct target *target);
|
||||
|
||||
static int avr_arch_state(struct target *target);
|
||||
@@ -68,7 +68,7 @@ struct target_type avr_target = {
|
||||
.init_target = avr_init_target,
|
||||
};
|
||||
|
||||
static int avr_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int avr_target_create(struct target *target)
|
||||
{
|
||||
struct avr_common *avr = calloc(1, sizeof(struct avr_common));
|
||||
|
||||
|
||||
@@ -3126,7 +3126,7 @@ static int cortex_a_init_arch_info(struct target *target,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int cortex_a_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int cortex_a_target_create(struct target *target)
|
||||
{
|
||||
struct cortex_a_common *cortex_a;
|
||||
struct adiv5_private_config *pc;
|
||||
@@ -3148,7 +3148,7 @@ static int cortex_a_target_create(struct target *target, Jim_Interp *interp)
|
||||
return cortex_a_init_arch_info(target, cortex_a, pc->dap);
|
||||
}
|
||||
|
||||
static int cortex_r4_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int cortex_r4_target_create(struct target *target)
|
||||
{
|
||||
struct cortex_a_common *cortex_a;
|
||||
struct adiv5_private_config *pc;
|
||||
|
||||
@@ -2916,7 +2916,7 @@ static int cortex_m_init_arch_info(struct target *target,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int cortex_m_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int cortex_m_target_create(struct target *target)
|
||||
{
|
||||
struct adiv5_private_config *pc;
|
||||
|
||||
|
||||
@@ -880,7 +880,7 @@ static void dsp563xx_invalidate_x_context(struct target *target,
|
||||
}
|
||||
}
|
||||
|
||||
static int dsp563xx_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int dsp563xx_target_create(struct target *target)
|
||||
{
|
||||
struct dsp563xx_common *dsp563xx = calloc(1, sizeof(struct dsp563xx_common));
|
||||
|
||||
|
||||
@@ -855,7 +855,7 @@ static int eonce_pc_store(struct target *target)
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int dsp5680xx_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int dsp5680xx_target_create(struct target *target)
|
||||
{
|
||||
struct dsp5680xx_common *dsp5680xx =
|
||||
calloc(1, sizeof(struct dsp5680xx_common));
|
||||
|
||||
@@ -1575,7 +1575,7 @@ static int esirisc_identify(struct target *target)
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int esirisc_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int esirisc_target_create(struct target *target)
|
||||
{
|
||||
struct jtag_tap *tap = target->tap;
|
||||
struct esirisc_common *esirisc;
|
||||
|
||||
@@ -326,7 +326,7 @@ static const struct esp_semihost_ops esp32_semihost_ops = {
|
||||
.prepare = esp32_disable_wdts
|
||||
};
|
||||
|
||||
static int esp32_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int esp32_target_create(struct target *target)
|
||||
{
|
||||
struct xtensa_debug_module_config esp32_dm_cfg = {
|
||||
.dbg_ops = &esp32_dbg_ops,
|
||||
|
||||
@@ -445,7 +445,7 @@ static const struct esp_semihost_ops esp32s2_semihost_ops = {
|
||||
.prepare = esp32s2_disable_wdts
|
||||
};
|
||||
|
||||
static int esp32s2_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int esp32s2_target_create(struct target *target)
|
||||
{
|
||||
struct xtensa_debug_module_config esp32s2_dm_cfg = {
|
||||
.dbg_ops = &esp32s2_dbg_ops,
|
||||
|
||||
@@ -320,7 +320,7 @@ static const struct esp_semihost_ops esp32s3_semihost_ops = {
|
||||
.prepare = esp32s3_disable_wdts
|
||||
};
|
||||
|
||||
static int esp32s3_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int esp32s3_target_create(struct target *target)
|
||||
{
|
||||
struct xtensa_debug_module_config esp32s3_dm_cfg = {
|
||||
.dbg_ops = &esp32s3_dbg_ops,
|
||||
|
||||
@@ -329,7 +329,7 @@ static int fa526_init_arch_info(struct target *target,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int fa526_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int fa526_target_create(struct target *target)
|
||||
{
|
||||
struct arm920t_common *arm920t = calloc(1, sizeof(struct arm920t_common));
|
||||
|
||||
|
||||
@@ -622,7 +622,7 @@ static void feroceon_common_setup(struct target *target)
|
||||
arm7_9->wp1_used_default = -1;
|
||||
}
|
||||
|
||||
static int feroceon_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int feroceon_target_create(struct target *target)
|
||||
{
|
||||
struct arm926ejs_common *arm926ejs = calloc(1, sizeof(struct arm926ejs_common));
|
||||
|
||||
@@ -640,7 +640,7 @@ static int feroceon_target_create(struct target *target, Jim_Interp *interp)
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int dragonite_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int dragonite_target_create(struct target *target)
|
||||
{
|
||||
struct arm966e_common *arm966e = calloc(1, sizeof(struct arm966e_common));
|
||||
|
||||
|
||||
@@ -187,8 +187,7 @@ static int adapter_init_target(struct command_context *cmd_ctx,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int adapter_target_create(struct target *target,
|
||||
Jim_Interp *interp)
|
||||
static int adapter_target_create(struct target *target)
|
||||
{
|
||||
LOG_DEBUG("%s", __func__);
|
||||
struct adiv5_private_config *pc = target->private_config;
|
||||
|
||||
@@ -17,7 +17,7 @@ struct ls1_sap {
|
||||
struct jtag_tap *tap;
|
||||
};
|
||||
|
||||
static int ls1_sap_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int ls1_sap_target_create(struct target *target)
|
||||
{
|
||||
struct ls1_sap *ls1_sap = calloc(1, sizeof(struct ls1_sap));
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ struct mem_ap {
|
||||
uint64_t ap_num;
|
||||
};
|
||||
|
||||
static int mem_ap_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int mem_ap_target_create(struct target *target)
|
||||
{
|
||||
struct mem_ap *mem_ap;
|
||||
struct adiv5_private_config *pc;
|
||||
|
||||
@@ -1158,7 +1158,7 @@ static int mips_m4k_init_arch_info(struct target *target,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int mips_m4k_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int mips_m4k_target_create(struct target *target)
|
||||
{
|
||||
struct mips_m4k_common *mips_m4k = calloc(1, sizeof(struct mips_m4k_common));
|
||||
|
||||
|
||||
@@ -1082,7 +1082,7 @@ static int mips_mips64_init_target(struct command_context *cmd_ctx,
|
||||
return mips64_build_reg_cache(target);
|
||||
}
|
||||
|
||||
static int mips_mips64_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int mips_mips64_target_create(struct target *target)
|
||||
{
|
||||
struct mips_mips64_common *mips_mips64;
|
||||
struct mips64_common *mips64;
|
||||
|
||||
@@ -1097,7 +1097,7 @@ static int or1k_init_target(struct command_context *cmd_ctx,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int or1k_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int or1k_target_create(struct target *target)
|
||||
{
|
||||
if (!target->tap)
|
||||
return ERROR_FAIL;
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "lakemont.h"
|
||||
#include "x86_32_common.h"
|
||||
|
||||
static int quark_d20xx_target_create(struct target *t, Jim_Interp *interp)
|
||||
static int quark_d20xx_target_create(struct target *t)
|
||||
{
|
||||
struct x86_32_common *x86_32 = calloc(1, sizeof(struct x86_32_common));
|
||||
if (!x86_32) {
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include "lakemont.h"
|
||||
#include "x86_32_common.h"
|
||||
|
||||
static int quark_x10xx_target_create(struct target *t, Jim_Interp *interp)
|
||||
static int quark_x10xx_target_create(struct target *t)
|
||||
{
|
||||
struct x86_32_common *x86_32 = calloc(1, sizeof(*x86_32));
|
||||
|
||||
|
||||
@@ -427,7 +427,7 @@ static struct target_type *get_target_type(struct target *target)
|
||||
}
|
||||
}
|
||||
|
||||
static int riscv_create_target(struct target *target, Jim_Interp *interp)
|
||||
static int riscv_create_target(struct target *target)
|
||||
{
|
||||
LOG_DEBUG("riscv_create_target()");
|
||||
target->arch_info = calloc(1, sizeof(struct riscv_info));
|
||||
|
||||
@@ -1106,8 +1106,7 @@ static int stm8_init_arch_info(struct target *target,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int stm8_target_create(struct target *target,
|
||||
Jim_Interp *interp)
|
||||
static int stm8_target_create(struct target *target)
|
||||
{
|
||||
|
||||
struct stm8_common *stm8 = calloc(1, sizeof(struct stm8_common));
|
||||
|
||||
@@ -5865,7 +5865,7 @@ COMMAND_HANDLER(handle_target_create)
|
||||
}
|
||||
|
||||
if (target->type->target_create) {
|
||||
retval = (*target->type->target_create)(target, CMD_CTX->interp);
|
||||
retval = (*target->type->target_create)(target);
|
||||
if (retval != ERROR_OK) {
|
||||
LOG_DEBUG("target_create failed");
|
||||
free(target->cmd_name);
|
||||
|
||||
@@ -194,7 +194,7 @@ struct target_type {
|
||||
const struct command_registration *commands;
|
||||
|
||||
/* called when target is created */
|
||||
int (*target_create)(struct target *target, Jim_Interp *interp);
|
||||
int (*target_create)(struct target *target);
|
||||
|
||||
/* called for various config parameters */
|
||||
/* returns JIM_CONTINUE - if option not understood */
|
||||
|
||||
@@ -3012,7 +3012,7 @@ static int xscale_init_arch_info(struct target *target,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int xscale_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int xscale_target_create(struct target *target)
|
||||
{
|
||||
struct xscale_common *xscale;
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ static const struct xtensa_power_ops xtensa_chip_dm_pwr_ops = {
|
||||
.queue_reg_write = xtensa_dm_queue_pwr_reg_write
|
||||
};
|
||||
|
||||
static int xtensa_chip_target_create(struct target *target, Jim_Interp *interp)
|
||||
static int xtensa_chip_target_create(struct target *target)
|
||||
{
|
||||
struct xtensa_debug_module_config xtensa_chip_dm_cfg = {
|
||||
.dbg_ops = &xtensa_chip_dm_dbg_ops,
|
||||
|
||||
Reference in New Issue
Block a user