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;
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;
}
-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));
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;
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));
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;
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;
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));
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));
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));
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));
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));
#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);
.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));
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;
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;
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;
}
}
-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));
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));
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;
.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,
.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,
.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,
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));
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));
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));
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;
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));
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;
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));
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;
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;
#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) {
#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));
}
}
-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));
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));
}
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);
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 */
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;
.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,