OpenOCD
|
Go to the source code of this file.
Functions | |
static int | dragonite_target_create (struct target *target, Jim_Interp *interp) |
static int | feroceon_assert_reset (struct target *target) |
static void | feroceon_branch_resume (struct target *target) |
static void | feroceon_branch_resume_thumb (struct target *target) |
static int | feroceon_bulk_write_memory (struct target *target, target_addr_t address, uint32_t count, const uint8_t *buffer) |
static void | feroceon_change_to_arm (struct target *target, uint32_t *r0, uint32_t *pc) |
static void | feroceon_common_setup (struct target *target) |
static void | feroceon_deinit_target (struct target *target) |
static void | feroceon_disable_single_step (struct target *target) |
static int | feroceon_dummy_clock_out (struct arm_jtag *jtag_info, uint32_t instr) |
static void | feroceon_enable_single_step (struct target *target, uint32_t next_pc) |
static int | feroceon_examine (struct target *target) |
static int | feroceon_examine_debug_reason (struct target *target) |
static int | feroceon_init_target (struct command_context *cmd_ctx, struct target *target) |
static void | feroceon_read_core_regs (struct target *target, uint32_t mask, uint32_t *core_regs[16]) |
static void | feroceon_read_core_regs_target_buffer (struct target *target, uint32_t mask, void *buffer, int size) |
static int | feroceon_read_cp15 (struct target *target, uint32_t op1, uint32_t op2, uint32_t crn, uint32_t crm, uint32_t *value) |
static void | feroceon_read_xpsr (struct target *target, uint32_t *xpsr, int spsr) |
static void | feroceon_set_dbgrq (struct target *target) |
static int | feroceon_target_create (struct target *target, Jim_Interp *interp) |
static void | feroceon_write_core_regs (struct target *target, uint32_t mask, uint32_t core_regs[16]) |
static int | feroceon_write_cp15 (struct target *target, uint32_t op1, uint32_t op2, uint32_t crn, uint32_t crm, uint32_t value) |
static void | feroceon_write_xpsr (struct target *target, uint32_t xpsr, int spsr) |
static void | feroceon_write_xpsr_im8 (struct target *target, uint8_t xpsr_im, int rot, int spsr) |
Variables | |
struct target_type | dragonite_target |
struct target_type | feroceon_target |
|
static |
Definition at line 643 of file feroceon.c.
References arm::arch_info, target::arch_info, arm7_9_write_memory(), arm966e_init_arch_info(), ERROR_OK, feroceon_common_setup(), target::tap, and arm7_9_common::write_memory.
|
static |
Definition at line 48 of file feroceon.c.
References arm::arch_info, target::arch_info, arm7_9_assert_reset(), arm7_9_halt(), ERROR_TARGET_NOT_EXAMINED, LOG_WARNING, target::reset_halt, target_was_examined(), and arm7_9_common::use_dbgrq.
|
static |
Definition at line 314 of file feroceon.c.
References arm::arch_info, target::arch_info, arm9tdmi_clock_out(), ARMV4_5_B, ARMV4_5_NOP, arm7_9_common::jtag_info, arm7_9_common::need_bypass_before_restart, and NULL.
Referenced by feroceon_common_setup().
|
static |
Definition at line 329 of file feroceon.c.
References arm::arch_info, target::arch_info, arm9tdmi_clock_out(), ARMV4_5_BX, ARMV4_5_NOP, ARMV4_5_T_B, ARMV4_5_T_LDMIA, ARMV4_5_T_NOP, buf_get_u32(), arm::core_cache, arm7_9_common::jtag_info, LOG_DEBUG, arm7_9_common::need_bypass_before_restart, NULL, arm::pc, reg_cache::reg_list, and reg::value.
Referenced by feroceon_common_setup().
|
static |
Definition at line 451 of file feroceon.c.
References working_area::address, arm::arch_info, target::arch_info, arm7_9_resume(), arm7_9_write_memory_no_opt(), ARM_STATE_ARM, ARRAY_SIZE, buf_get_u32(), buf_set_u32(), buffer, arm::core_cache, arm::core_state, count, dcc_code, arm7_9_common::dcc_downloads, arm7_9_common::dcc_working_area, reg::dirty, arm7_9_common::eice_cache, EICE_COMMS_DATA, embeddedice_write_reg(), ERROR_FAIL, ERROR_OK, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, ERROR_TARGET_UNALIGNED_ACCESS, LOG_ERROR, LOG_INFO, arm::pc, reg_cache::reg_list, target_alloc_working_area(), target_buffer_get_u32(), target_buffer_set_u32_array(), target_halt(), TARGET_HALTED, TARGET_PRIxADDR, target_wait_state(), reg::valid, and reg::value.
Referenced by feroceon_common_setup().
|
static |
Definition at line 108 of file feroceon.c.
References arm::arch_info, target::arch_info, arm9tdmi_clock_out(), ARMV4_5_T_BX, ARMV4_5_T_MOV, ARMV4_5_T_NOP, ARMV4_5_T_STR, feroceon_dummy_clock_out(), jtag_execute_queue(), arm7_9_common::jtag_info, and NULL.
Referenced by feroceon_common_setup().
|
static |
Definition at line 590 of file feroceon.c.
References arm::arch_info, target::arch_info, arm7_9_common::branch_resume, arm7_9_common::branch_resume_thumb, arm7_9_common::bulk_write_memory, arm7_9_common::change_to_arm, arm7_9_common::disable_single_step, arm7_9_common::enable_single_step, arm7_9_common::examine_debug_reason, feroceon_branch_resume(), feroceon_branch_resume_thumb(), feroceon_bulk_write_memory(), feroceon_change_to_arm(), feroceon_disable_single_step(), feroceon_enable_single_step(), feroceon_examine_debug_reason(), feroceon_read_core_regs(), feroceon_read_core_regs_target_buffer(), feroceon_read_xpsr(), feroceon_set_dbgrq(), feroceon_write_core_regs(), feroceon_write_xpsr(), feroceon_write_xpsr_im8(), arm7_9_common::read_core_regs, arm7_9_common::read_core_regs_target_buffer, arm7_9_common::read_xpsr, arm7_9_common::set_special_dbgrq, arm7_9_common::use_dbgrq, arm7_9_common::wp1_used_default, arm7_9_common::wp_available_max, arm7_9_common::write_core_regs, arm7_9_common::write_xpsr, and arm7_9_common::write_xpsr_im8.
Referenced by dragonite_target_create(), and feroceon_target_create().
|
static |
Definition at line 585 of file feroceon.c.
References arm9tdmi_deinit_target().
|
static |
Definition at line 430 of file feroceon.c.
References arm::arch_info, target::arch_info, arm7_9_common::eice_cache, EICE_W0_ADDR_MASK, EICE_W0_ADDR_VALUE, EICE_W0_CONTROL_MASK, EICE_W0_CONTROL_VALUE, EICE_W0_DATA_MASK, embeddedice_store_reg(), and reg_cache::reg_list.
Referenced by feroceon_common_setup().
|
static |
Definition at line 68 of file feroceon.c.
References arm_jtag_scann(), arm_jtag_set_instr(), buf_set_u32(), ERROR_OK, flip_u32(), scan_field::in_value, arm_jtag::intest_instr, jtag_add_dr_scan(), NULL, scan_field::num_bits, scan_field::out_value, arm_jtag::tap, and TAP_DRPAUSE.
Referenced by feroceon_change_to_arm().
|
static |
Definition at line 417 of file feroceon.c.
References arm::arch_info, target::arch_info, arm7_9_common::eice_cache, EICE_W0_ADDR_MASK, EICE_W0_ADDR_VALUE, EICE_W0_CONTROL_MASK, EICE_W0_CONTROL_VALUE, EICE_W0_DATA_MASK, embeddedice_write_reg(), and reg_cache::reg_list.
Referenced by feroceon_common_setup().
|
static |
Definition at line 657 of file feroceon.c.
|
static |
Definition at line 442 of file feroceon.c.
References DBG_REASON_DBGRQ, DBG_REASON_SINGLESTEP, target::debug_reason, and ERROR_OK.
Referenced by feroceon_common_setup().
|
static |
Definition at line 578 of file feroceon.c.
References arm9tdmi_init_target(), and ERROR_OK.
|
static |
Definition at line 155 of file feroceon.c.
References arm::arch_info, target::arch_info, arm9tdmi_clock_data_in(), arm9tdmi_clock_out(), ARMV4_5_NOP, ARMV4_5_STMIA, arm7_9_common::jtag_info, mask, and NULL.
Referenced by feroceon_common_setup().
|
static |
Definition at line 175 of file feroceon.c.
References arm::arch_info, target::arch_info, arm9tdmi_clock_data_in_endianness(), arm9tdmi_clock_out(), ARMV4_5_NOP, ARMV4_5_STMIA, buffer, target::endianness, arm7_9_common::jtag_info, mask, NULL, size, and TARGET_BIG_ENDIAN.
Referenced by feroceon_common_setup().
|
static |
Definition at line 364 of file feroceon.c.
References arm::arch_info, target::arch_info, arm7_9_execute_sys_speed(), arm9tdmi_clock_out(), ARMV4_5_MRC, ARMV4_5_NOP, ARMV4_5_STMIA, ERROR_OK, jtag_execute_queue(), arm7_9_common::jtag_info, and NULL.
Referenced by feroceon_target_create().
|
static |
Definition at line 211 of file feroceon.c.
References arm::arch_info, target::arch_info, arm9tdmi_clock_out(), ARMV4_5_MRS, ARMV4_5_NOP, ARMV4_5_STMIA, arm7_9_common::jtag_info, and NULL.
Referenced by feroceon_common_setup().
|
static |
Definition at line 407 of file feroceon.c.
References arm::arch_info, target::arch_info, buf_set_u32(), arm7_9_common::eice_cache, EICE_DBG_CTRL, embeddedice_store_reg(), reg_cache::reg_list, and reg::value.
Referenced by feroceon_common_setup().
|
static |
Definition at line 625 of file feroceon.c.
References arm::arch_info, target::arch_info, arm926ejs_init_arch_info(), arm926ejs_write_memory(), ERROR_OK, feroceon_common_setup(), feroceon_read_cp15(), feroceon_write_cp15(), arm926ejs_common::read_cp15, target::tap, arm926ejs_common::write_cp15, and arm7_9_common::write_memory.
|
static |
Definition at line 293 of file feroceon.c.
References arm::arch_info, target::arch_info, arm9tdmi_clock_out(), ARMV4_5_LDMIA, ARMV4_5_NOP, arm7_9_common::jtag_info, mask, and NULL.
Referenced by feroceon_common_setup().
|
static |
Definition at line 387 of file feroceon.c.
References arm::arch_info, target::arch_info, arm7_9_execute_sys_speed(), arm9tdmi_clock_out(), ARMV4_5_LDMIA, ARMV4_5_MCR, ARMV4_5_NOP, arm7_9_common::jtag_info, and NULL.
Referenced by feroceon_target_create().
|
static |
Definition at line 234 of file feroceon.c.
References arm::arch_info, target::arch_info, arm9tdmi_clock_out(), ARMV4_5_MSR_IM, ARMV4_5_NOP, arm7_9_common::jtag_info, LOG_DEBUG, and NULL.
Referenced by feroceon_common_setup().
|
static |
Definition at line 275 of file feroceon.c.
References arm::arch_info, target::arch_info, arm9tdmi_clock_out(), ARMV4_5_MSR_IM, ARMV4_5_NOP, arm7_9_common::jtag_info, LOG_DEBUG, and NULL.
Referenced by feroceon_common_setup().
struct target_type dragonite_target |
Definition at line 657 of file feroceon.c.
struct target_type feroceon_target |
Definition at line 657 of file feroceon.c.