OpenOCD
|
Go to the source code of this file.
Macros | |
#define | ASM_REG_W_A0 0x50F400 |
#define | ASM_REG_W_A1 0x54F400 |
#define | ASM_REG_W_A2 0x52F400 |
#define | ASM_REG_W_AAR0 0xFFFFF9 |
#define | ASM_REG_W_AAR1 0xFFFFF8 |
#define | ASM_REG_W_AAR2 0xFFFFF7 |
#define | ASM_REG_W_AAR3 0xFFFFF6 |
#define | ASM_REG_W_B0 0x51F400 |
#define | ASM_REG_W_B1 0x55F400 |
#define | ASM_REG_W_B2 0x53F400 |
#define | ASM_REG_W_BCR 0xFFFFFB |
#define | ASM_REG_W_DCR 0xFFFFFA |
#define | ASM_REG_W_EP 0x05F42A |
#define | ASM_REG_W_IPRC 0xFFFFFF |
#define | ASM_REG_W_IPRP 0xFFFFFE |
#define | ASM_REG_W_LA 0x05F43E |
#define | ASM_REG_W_LC 0x05F43F |
#define | ASM_REG_W_M0 0x05F420 |
#define | ASM_REG_W_M1 0x05F421 |
#define | ASM_REG_W_M2 0x05F422 |
#define | ASM_REG_W_M3 0x05F423 |
#define | ASM_REG_W_M4 0x05F424 |
#define | ASM_REG_W_M5 0x05F425 |
#define | ASM_REG_W_M6 0x05F426 |
#define | ASM_REG_W_M7 0x05F427 |
#define | ASM_REG_W_N0 0x70F400 |
#define | ASM_REG_W_N1 0x71F400 |
#define | ASM_REG_W_N2 0x72F400 |
#define | ASM_REG_W_N3 0x73F400 |
#define | ASM_REG_W_N4 0x74F400 |
#define | ASM_REG_W_N5 0x75F400 |
#define | ASM_REG_W_N6 0x76F400 |
#define | ASM_REG_W_N7 0x77F400 |
#define | ASM_REG_W_OMR 0x05F43A |
#define | ASM_REG_W_PC 0x000000 |
#define | ASM_REG_W_R0 0x60F400 |
#define | ASM_REG_W_R1 0x61F400 |
#define | ASM_REG_W_R2 0x62F400 |
#define | ASM_REG_W_R3 0x63F400 |
#define | ASM_REG_W_R4 0x64F400 |
#define | ASM_REG_W_R5 0x65F400 |
#define | ASM_REG_W_R6 0x66F400 |
#define | ASM_REG_W_R7 0x67F400 |
#define | ASM_REG_W_SC 0x05F431 |
#define | ASM_REG_W_SP 0x05F43B |
#define | ASM_REG_W_SR 0x05F439 |
#define | ASM_REG_W_SSH 0x05F43C |
#define | ASM_REG_W_SSL 0x05F43D |
#define | ASM_REG_W_SZ 0x05F438 |
#define | ASM_REG_W_VBA 0x05F430 |
#define | ASM_REG_W_X0 0x44F400 |
#define | ASM_REG_W_X1 0x45F400 |
#define | ASM_REG_W_Y0 0x46F400 |
#define | ASM_REG_W_Y1 0x47F400 |
#define | DSP563XX_SR_SA (1<<17) |
#define | DSP563XX_SR_SC (1<<13) |
#define | EAME_R0 0x10 |
#define | INSTR_JUMP 0x0AF080 |
#define | INSTR_MOVEP_REG_HIO(s, w, d, p) |
#define | OBCR_B0_AFTER_B1 ((0x3) << 10) |
#define | OBCR_B0_AND_B1 ((0x0) << 10) |
#define | OBCR_B0_OR_B1 ((0x1) << 10) |
#define | OBCR_B1_AFTER_B0 ((0x2) << 10) |
#define | OBCR_BP_0(x) ((x)<<2) |
#define | OBCR_BP_1(x) ((x)<<6) |
#define | OBCR_BP_CC_EQUAL ((0x1) << 2) |
#define | OBCR_BP_CC_GREATER_THAN ((0x3) << 2) |
#define | OBCR_BP_CC_LESS_THAN ((0x2) << 2) |
#define | OBCR_BP_CC_NOT_EQUAL ((0x0) << 2) |
#define | OBCR_BP_DISABLED (0x0) |
#define | OBCR_BP_MEM_P (0x1) |
#define | OBCR_BP_MEM_X (0x2) |
#define | OBCR_BP_MEM_Y (0x3) |
#define | OBCR_BP_ON_READ ((0x2) << 0) |
#define | OBCR_BP_ON_WRITE ((0x1) << 0) |
Functions | |
COMMAND_HANDLER (dsp563xx_add_watchpoint_command) | |
COMMAND_HANDLER (dsp563xx_mem_command) | |
COMMAND_HANDLER (dsp563xx_remove_watchpoint_command) | |
static int | dsp563xx_add_breakpoint (struct target *target, struct breakpoint *breakpoint) |
static int | dsp563xx_add_custom_watchpoint (struct target *target, uint32_t address, uint32_t mem_type, enum watchpoint_rw rw, enum watchpoint_condition cond) |
static int | dsp563xx_add_watchpoint (struct target *target, struct watchpoint *watchpoint) |
static int | dsp563xx_arch_state (struct target *target) |
static int | dsp563xx_assert_reset (struct target *target) |
static void | dsp563xx_build_reg_cache (struct target *target) |
static int | dsp563xx_deassert_reset (struct target *target) |
static int | dsp563xx_debug_init (struct target *target) |
static int | dsp563xx_debug_once_init (struct target *target) |
static int | dsp563xx_examine (struct target *target) |
static int | dsp563xx_get_core_reg (struct reg *reg) |
static int | dsp563xx_get_default_memory (void) |
static int | dsp563xx_get_gdb_reg_list (struct target *target, struct reg **reg_list[], int *reg_list_size, enum target_register_class reg_class) |
static int | dsp563xx_halt (struct target *target) |
static int | dsp563xx_init_target (struct command_context *cmd_ctx, struct target *target) |
static void | dsp563xx_invalidate_x_context (struct target *target, uint32_t addr_start, uint32_t addr_end) |
static int | dsp563xx_jtag_debug_request (struct target *target) |
static int | dsp563xx_poll (struct target *target) |
static int | dsp563xx_read_buffer_default (struct target *target, target_addr_t address, uint32_t size, uint8_t *buffer) |
static int | dsp563xx_read_core_reg (struct target *target, int num) |
static int | dsp563xx_read_memory (struct target *target, int mem_type, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer) |
static int | dsp563xx_read_memory_core (struct target *target, int mem_type, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer) |
static int | dsp563xx_read_memory_default (struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer) |
static int | dsp563xx_read_register (struct target *target, int num, int force) |
static int | dsp563xx_reg_pc_read (struct target *target) |
static int | dsp563xx_reg_read (struct target *target, uint32_t eame, uint32_t *data) |
static int | dsp563xx_reg_read_high_io (struct target *target, uint32_t instr_mask, uint32_t *data) |
static int | dsp563xx_reg_ssh_read (struct target *target) |
static int | dsp563xx_reg_ssh_write (struct target *target) |
static int | dsp563xx_reg_ssl_read (struct target *target) |
static int | dsp563xx_reg_write (struct target *target, uint32_t instr_mask, uint32_t data) |
static int | dsp563xx_reg_write_high_io (struct target *target, uint32_t instr_mask, uint32_t data) |
static int | dsp563xx_remove_breakpoint (struct target *target, struct breakpoint *breakpoint) |
static int | dsp563xx_remove_custom_watchpoint (struct target *target) |
static int | dsp563xx_remove_watchpoint (struct target *target, struct watchpoint *watchpoint) |
static int | dsp563xx_restore_context (struct target *target) |
static int | dsp563xx_resume (struct target *target, int current, target_addr_t address, int handle_breakpoints, int debug_execution) |
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, target_addr_t entry_point, target_addr_t exit_point, unsigned int timeout_ms, void *arch_info) |
static int | dsp563xx_save_context (struct target *target) |
static int | dsp563xx_set_core_reg (struct reg *reg, uint8_t *buf) |
static int | dsp563xx_step (struct target *target, int current, target_addr_t address, int handle_breakpoints) |
static int | dsp563xx_step_ex (struct target *target, int current, uint32_t address, int handle_breakpoints, int steps) |
static int | dsp563xx_target_create (struct target *target, Jim_Interp *interp) |
static int | dsp563xx_write_buffer_default (struct target *target, target_addr_t address, uint32_t size, const uint8_t *buffer) |
static int | dsp563xx_write_core_reg (struct target *target, int num) |
static int | dsp563xx_write_memory (struct target *target, int mem_type, target_addr_t address, uint32_t size, uint32_t count, const uint8_t *buffer) |
static int | dsp563xx_write_memory_core (struct target *target, int mem_type, target_addr_t address, uint32_t size, uint32_t count, const uint8_t *buffer) |
static int | dsp563xx_write_memory_default (struct target *target, target_addr_t address, uint32_t size, uint32_t count, const uint8_t *buffer) |
static int | dsp563xx_write_register (struct target *target, int num, int force) |
Variables | |
static const struct command_registration | dsp563xx_command_handlers [] |
static const struct reg_arch_type | dsp563xx_reg_type |
struct { | |
unsigned int bits | |
uint8_t eame | |
unsigned int id | |
uint32_t instr_mask | |
const char * name | |
} | dsp563xx_regs [] |
struct target_type | dsp563xx_target |
Holds methods for DSP563XX targets. More... | |
static const uint8_t | gdb_reg_list_idx [] |
struct command_context * | global_cmd_ctx |
static struct once_reg | once_regs [] |
#define ASM_REG_W_A0 0x50F400 |
Definition at line 55 of file dsp563xx.c.
#define ASM_REG_W_A1 0x54F400 |
Definition at line 56 of file dsp563xx.c.
#define ASM_REG_W_A2 0x52F400 |
Definition at line 57 of file dsp563xx.c.
#define ASM_REG_W_AAR0 0xFFFFF9 |
Definition at line 80 of file dsp563xx.c.
#define ASM_REG_W_AAR1 0xFFFFF8 |
Definition at line 81 of file dsp563xx.c.
#define ASM_REG_W_AAR2 0xFFFFF7 |
Definition at line 82 of file dsp563xx.c.
#define ASM_REG_W_AAR3 0xFFFFF6 |
Definition at line 83 of file dsp563xx.c.
#define ASM_REG_W_B0 0x51F400 |
Definition at line 59 of file dsp563xx.c.
#define ASM_REG_W_B1 0x55F400 |
Definition at line 60 of file dsp563xx.c.
#define ASM_REG_W_B2 0x53F400 |
Definition at line 61 of file dsp563xx.c.
#define ASM_REG_W_BCR 0xFFFFFB |
Definition at line 78 of file dsp563xx.c.
#define ASM_REG_W_DCR 0xFFFFFA |
Definition at line 79 of file dsp563xx.c.
#define ASM_REG_W_EP 0x05F42A |
Definition at line 65 of file dsp563xx.c.
#define ASM_REG_W_IPRC 0xFFFFFF |
Definition at line 75 of file dsp563xx.c.
#define ASM_REG_W_IPRP 0xFFFFFE |
Definition at line 76 of file dsp563xx.c.
#define ASM_REG_W_LA 0x05F43E |
Definition at line 72 of file dsp563xx.c.
#define ASM_REG_W_LC 0x05F43F |
Definition at line 73 of file dsp563xx.c.
#define ASM_REG_W_M0 0x05F420 |
Definition at line 40 of file dsp563xx.c.
#define ASM_REG_W_M1 0x05F421 |
Definition at line 41 of file dsp563xx.c.
#define ASM_REG_W_M2 0x05F422 |
Definition at line 42 of file dsp563xx.c.
#define ASM_REG_W_M3 0x05F423 |
Definition at line 43 of file dsp563xx.c.
#define ASM_REG_W_M4 0x05F424 |
Definition at line 44 of file dsp563xx.c.
#define ASM_REG_W_M5 0x05F425 |
Definition at line 45 of file dsp563xx.c.
#define ASM_REG_W_M6 0x05F426 |
Definition at line 46 of file dsp563xx.c.
#define ASM_REG_W_M7 0x05F427 |
Definition at line 47 of file dsp563xx.c.
#define ASM_REG_W_N0 0x70F400 |
Definition at line 31 of file dsp563xx.c.
#define ASM_REG_W_N1 0x71F400 |
Definition at line 32 of file dsp563xx.c.
#define ASM_REG_W_N2 0x72F400 |
Definition at line 33 of file dsp563xx.c.
#define ASM_REG_W_N3 0x73F400 |
Definition at line 34 of file dsp563xx.c.
#define ASM_REG_W_N4 0x74F400 |
Definition at line 35 of file dsp563xx.c.
#define ASM_REG_W_N5 0x75F400 |
Definition at line 36 of file dsp563xx.c.
#define ASM_REG_W_N6 0x76F400 |
Definition at line 37 of file dsp563xx.c.
#define ASM_REG_W_N7 0x77F400 |
Definition at line 38 of file dsp563xx.c.
#define ASM_REG_W_OMR 0x05F43A |
Definition at line 64 of file dsp563xx.c.
#define ASM_REG_W_PC 0x000000 |
Definition at line 74 of file dsp563xx.c.
#define ASM_REG_W_R0 0x60F400 |
Definition at line 22 of file dsp563xx.c.
#define ASM_REG_W_R1 0x61F400 |
Definition at line 23 of file dsp563xx.c.
#define ASM_REG_W_R2 0x62F400 |
Definition at line 24 of file dsp563xx.c.
#define ASM_REG_W_R3 0x63F400 |
Definition at line 25 of file dsp563xx.c.
#define ASM_REG_W_R4 0x64F400 |
Definition at line 26 of file dsp563xx.c.
#define ASM_REG_W_R5 0x65F400 |
Definition at line 27 of file dsp563xx.c.
#define ASM_REG_W_R6 0x66F400 |
Definition at line 28 of file dsp563xx.c.
#define ASM_REG_W_R7 0x67F400 |
Definition at line 29 of file dsp563xx.c.
#define ASM_REG_W_SC 0x05F431 |
Definition at line 66 of file dsp563xx.c.
#define ASM_REG_W_SP 0x05F43B |
Definition at line 69 of file dsp563xx.c.
#define ASM_REG_W_SR 0x05F439 |
Definition at line 68 of file dsp563xx.c.
#define ASM_REG_W_SSH 0x05F43C |
Definition at line 70 of file dsp563xx.c.
#define ASM_REG_W_SSL 0x05F43D |
Definition at line 71 of file dsp563xx.c.
#define ASM_REG_W_SZ 0x05F438 |
Definition at line 67 of file dsp563xx.c.
#define ASM_REG_W_VBA 0x05F430 |
Definition at line 63 of file dsp563xx.c.
#define ASM_REG_W_X0 0x44F400 |
Definition at line 49 of file dsp563xx.c.
#define ASM_REG_W_X1 0x45F400 |
Definition at line 50 of file dsp563xx.c.
#define ASM_REG_W_Y0 0x46F400 |
Definition at line 52 of file dsp563xx.c.
#define ASM_REG_W_Y1 0x47F400 |
Definition at line 53 of file dsp563xx.c.
#define DSP563XX_SR_SA (1<<17) |
Definition at line 944 of file dsp563xx.c.
#define DSP563XX_SR_SC (1<<13) |
Definition at line 945 of file dsp563xx.c.
#define EAME_R0 0x10 |
Definition at line 313 of file dsp563xx.c.
#define INSTR_JUMP 0x0AF080 |
Definition at line 311 of file dsp563xx.c.
#define INSTR_MOVEP_REG_HIO | ( | s, | |
w, | |||
d, | |||
p | |||
) |
Definition at line 321 of file dsp563xx.c.
#define OBCR_B0_AFTER_B1 ((0x3) << 10) |
Definition at line 91 of file dsp563xx.c.
#define OBCR_B0_AND_B1 ((0x0) << 10) |
Definition at line 88 of file dsp563xx.c.
#define OBCR_B0_OR_B1 ((0x1) << 10) |
Definition at line 89 of file dsp563xx.c.
#define OBCR_B1_AFTER_B0 ((0x2) << 10) |
Definition at line 90 of file dsp563xx.c.
#define OBCR_BP_0 | ( | x | ) | ((x)<<2) |
Definition at line 104 of file dsp563xx.c.
#define OBCR_BP_1 | ( | x | ) | ((x)<<6) |
Definition at line 105 of file dsp563xx.c.
#define OBCR_BP_CC_EQUAL ((0x1) << 2) |
Definition at line 100 of file dsp563xx.c.
#define OBCR_BP_CC_GREATER_THAN ((0x3) << 2) |
Definition at line 102 of file dsp563xx.c.
#define OBCR_BP_CC_LESS_THAN ((0x2) << 2) |
Definition at line 101 of file dsp563xx.c.
#define OBCR_BP_CC_NOT_EQUAL ((0x0) << 2) |
Definition at line 99 of file dsp563xx.c.
#define OBCR_BP_DISABLED (0x0) |
Definition at line 93 of file dsp563xx.c.
#define OBCR_BP_MEM_P (0x1) |
Definition at line 94 of file dsp563xx.c.
#define OBCR_BP_MEM_X (0x2) |
Definition at line 95 of file dsp563xx.c.
#define OBCR_BP_MEM_Y (0x3) |
Definition at line 96 of file dsp563xx.c.
#define OBCR_BP_ON_READ ((0x2) << 0) |
Definition at line 97 of file dsp563xx.c.
#define OBCR_BP_ON_WRITE ((0x1) << 0) |
Definition at line 98 of file dsp563xx.c.
enum dsp563xx_reg_idx |
Definition at line 165 of file dsp563xx.c.
enum memory_type |
Enumerator | |
---|---|
MEM_X | |
MEM_Y | |
MEM_P | |
MEM_L |
Definition at line 297 of file dsp563xx.c.
enum once_reg_idx |
Definition at line 108 of file dsp563xx.c.
enum watchpoint_condition |
Enumerator | |
---|---|
EQUAL | |
NOT_EQUAL | |
GREATER | |
LESS_THAN |
Definition at line 304 of file dsp563xx.c.
COMMAND_HANDLER | ( | dsp563xx_add_watchpoint_command | ) |
Definition at line 2002 of file dsp563xx.c.
References CMD_ARGC, CMD_ARGV, CMD_CTX, CMD_NAME, COMMAND_PARSE_NUMBER, dsp563xx_add_custom_watchpoint(), EQUAL, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, get_current_target(), GREATER, LESS_THAN, MEM_P, MEM_X, MEM_Y, NOT_EQUAL, WPT_ACCESS, WPT_READ, and WPT_WRITE.
COMMAND_HANDLER | ( | dsp563xx_mem_command | ) |
Definition at line 2088 of file dsp563xx.c.
References buffer, CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, CMD_NAME, COMMAND_PARSE_NUMBER, count, dsp563xx_read_memory(), dsp563xx_write_memory(), ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, get_current_target(), MEM_P, MEM_X, MEM_Y, read_mem(), target_buffer_set_u32(), and target_handle_md_output().
COMMAND_HANDLER | ( | dsp563xx_remove_watchpoint_command | ) |
Definition at line 2081 of file dsp563xx.c.
References CMD_CTX, dsp563xx_remove_custom_watchpoint(), and get_current_target().
|
static |
Definition at line 2071 of file dsp563xx.c.
References breakpoint::address, dsp563xx_add_custom_watchpoint(), EQUAL, MEM_P, and WPT_READ.
|
static |
Definition at line 1877 of file dsp563xx.c.
References BPU_WATCHPOINT, dsp563xx_halt(), DSP563XX_ONCE_OBCR, DSP563XX_ONCE_OMBC, DSP563XX_ONCE_OMLR0, DSP563XX_ONCE_OMLR1, DSP563XX_ONCE_OTC, dsp563xx_once_reg_write(), dsp563xx_resume(), EQUAL, ERROR_OK, ERROR_TARGET_INVALID, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, GREATER, dsp563xx_common::hardware_breakpoint, LESS_THAN, LOG_ERROR, MEM_P, MEM_X, MEM_Y, NOT_EQUAL, OBCR_B0_OR_B1, OBCR_BP_0, OBCR_BP_CC_EQUAL, OBCR_BP_CC_GREATER_THAN, OBCR_BP_CC_LESS_THAN, OBCR_BP_CC_NOT_EQUAL, OBCR_BP_MEM_P, OBCR_BP_MEM_X, OBCR_BP_MEM_Y, OBCR_BP_ON_READ, OBCR_BP_ON_WRITE, target::state, target::tap, TARGET_HALTED, target_to_dsp563xx(), hardware_breakpoint::used, WPT_ACCESS, WPT_READ, and WPT_WRITE.
Referenced by COMMAND_HANDLER(), and dsp563xx_add_breakpoint().
|
static |
Definition at line 1864 of file dsp563xx.c.
References ERROR_TARGET_RESOURCE_NOT_AVAILABLE.
|
static |
Definition at line 938 of file dsp563xx.c.
|
static |
Definition at line 1315 of file dsp563xx.c.
References dsp563xx_common::core_cache, ERROR_OK, jtag_add_reset(), jtag_add_sleep(), jtag_get_reset_config(), jtag_reset_config, LOG_DEBUG, register_cache_invalidate(), target::reset_halt, RESET_HAS_SRST, RESET_SRST_PULLS_TRST, target::state, target_halt(), TARGET_RESET, and target_to_dsp563xx().
|
static |
Definition at line 435 of file dsp563xx.c.
References reg::arch_info, dsp563xx_common::core_cache, reg::dirty, dsp563xx_core_reg::dsp563xx_common, DSP563XX_NUMCOREREGS, dsp563xx_reg_type, dsp563xx_regs, dsp563xx_core_reg::eame, reg::exist, dsp563xx_core_reg::instr_mask, dsp563xx_core_reg::name, reg::name, reg_cache::name, reg_cache::next, NULL, dsp563xx_core_reg::num, reg_cache::num_regs, target::reg_cache, reg_cache::reg_list, register_get_last_cache_p(), dsp563xx_core_reg::size, reg::size, target, dsp563xx_core_reg::target, target_to_dsp563xx(), reg::type, reg::valid, and reg::value.
Referenced by dsp563xx_init_target().
|
static |
Definition at line 1345 of file dsp563xx.c.
References dsp563xx_poll(), dsp563xx_step_ex(), ERROR_OK, jtag_add_reset(), LOG_DEBUG, target::reset_halt, target::state, TARGET_HALTED, and TARGET_RUNNING.
|
static |
Definition at line 952 of file dsp563xx.c.
References reg::arch_info, dsp563xx_common::core_cache, dsp563xx_common::core_regs, reg::dirty, dsp563xx_debug_once_init(), dsp563xx_once_execute_dw_ir(), dsp563xx_read_register(), DSP563XX_REG_IDX_M0, DSP563XX_REG_IDX_M1, DSP563XX_REG_IDX_N0, DSP563XX_REG_IDX_N1, DSP563XX_REG_IDX_SR, dsp563xx_reg_write(), dsp563xx_save_context(), DSP563XX_SR_SA, DSP563XX_SR_SC, ERROR_OK, dsp563xx_core_reg::instr_mask, reg_cache::reg_list, target::tap, and target_to_dsp563xx().
Referenced by dsp563xx_poll(), and dsp563xx_step_ex().
|
static |
Definition at line 947 of file dsp563xx.c.
References DSP563XX_NUMONCEREGS, dsp563xx_once_read_register(), once_regs, and target::tap.
Referenced by dsp563xx_debug_init().
|
static |
Definition at line 911 of file dsp563xx.c.
References DSP563XX_ONCE_OBCR, dsp563xx_once_reg_write(), ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, jtag_tap::has_idcode, jtag_tap::idcode, LOG_ERROR, LOG_INFO, target::tap, target_set_examined(), and target_was_examined().
|
static |
Definition at line 398 of file dsp563xx.c.
References reg::arch_info, ERROR_TARGET_NOT_HALTED, LOG_DEBUG, dsp563xx_core_reg::num, dsp563xx_common::read_core_reg, target::state, dsp563xx_core_reg::target, TARGET_HALTED, and target_to_dsp563xx().
|
static |
Definition at line 1468 of file dsp563xx.c.
References global_cmd_ctx, command_context::interp, MEM_L, MEM_P, MEM_X, MEM_Y, and NULL.
Referenced by dsp563xx_read_buffer_default(), dsp563xx_read_memory_default(), dsp563xx_write_buffer_default(), and dsp563xx_write_memory_default().
|
static |
Definition at line 342 of file dsp563xx.c.
References dsp563xx_common::core_cache, DSP563XX_NUMCOREREGS, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, ERROR_TARGET_NOT_HALTED, gdb_reg_list_idx, reg_cache::reg_list, target::state, TARGET_HALTED, and target_to_dsp563xx().
|
static |
Definition at line 1094 of file dsp563xx.c.
References DBG_REASON_DBGRQ, target::debug_reason, dsp563xx_jtag_debug_request(), ERROR_OK, LOG_DEBUG, LOG_WARNING, target::state, TARGET_HALTED, and TARGET_UNKNOWN.
Referenced by dsp563xx_add_custom_watchpoint().
|
static |
Definition at line 898 of file dsp563xx.c.
References BPU_NONE, dsp563xx_build_reg_cache(), ERROR_OK, dsp563xx_common::hardware_breakpoint, dsp563xx_common::hardware_breakpoints_cleared, LOG_DEBUG, target_to_dsp563xx(), and hardware_breakpoint::used.
|
static |
Definition at line 859 of file dsp563xx.c.
References reg::arch_info, ASM_REG_W_AAR3, ASM_REG_W_IPRC, dsp563xx_common::core_cache, reg::dirty, DSP563XX_NUMCOREREGS, DSP563XX_REG_IDX_IPRC, dsp563xx_core_reg::instr_mask, reg_cache::reg_list, target_to_dsp563xx(), and reg::valid.
Referenced by dsp563xx_write_memory_core().
|
static |
Definition at line 1033 of file dsp563xx.c.
References dsp563xx_once_request_debug(), target::state, target::tap, and TARGET_RESET.
Referenced by dsp563xx_halt(), and dsp563xx_step_ex().
|
static |
Definition at line 1038 of file dsp563xx.c.
References dsp563xx_common::core_regs, dsp563xx_debug_init(), DSP563XX_ONCE_OBCR, DSP563XX_ONCE_OMLR0, DSP563XX_ONCE_OMLR1, DSP563XX_ONCE_OSCR, DSP563XX_ONCE_OSCR_DEBUG_M, DSP563XX_ONCE_OSCR_MBO, DSP563XX_ONCE_OSCR_SWO, dsp563xx_once_reg_read(), dsp563xx_once_reg_write(), dsp563xx_once_target_status(), DSP563XX_REG_IDX_PC, ERROR_OK, ERROR_TARGET_FAILURE, dsp563xx_common::hardware_breakpoints_cleared, LOG_DEBUG, LOG_ERROR, LOG_INFO, state, target::state, target::tap, target_call_event_callbacks(), TARGET_EVENT_DEBUG_HALTED, TARGET_EVENT_HALTED, TARGET_HALTED, target_state_name(), target_to_dsp563xx(), and TARGET_UNKNOWN.
Referenced by dsp563xx_deassert_reset().
|
static |
Definition at line 1677 of file dsp563xx.c.
References buffer, dsp563xx_get_default_memory(), dsp563xx_read_memory(), and size.
|
static |
Definition at line 366 of file dsp563xx.c.
References buf_set_u32(), dsp563xx_common::core_cache, dsp563xx_common::core_regs, reg::dirty, DSP563XX_NUMCOREREGS, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, reg_cache::reg_list, target_to_dsp563xx(), reg::valid, and reg::value.
Referenced by dsp563xx_target_create().
|
static |
Definition at line 1597 of file dsp563xx.c.
References buf_get_u32(), buf_set_u32(), buffer, count, dsp563xx_read_memory_core(), ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_DEBUG, MEM_L, MEM_X, MEM_Y, and size.
Referenced by COMMAND_HANDLER(), dsp563xx_read_buffer_default(), and dsp563xx_read_memory_default().
|
static |
Definition at line 1506 of file dsp563xx.c.
References buf_get_u32(), buffer, dsp563xx_common::core_cache, count, reg::dirty, dsp563xx_once_execute_dw_ir(), dsp563xx_once_execute_sw_ir(), DSP563XX_ONCE_OGDBR, dsp563xx_once_reg_read(), DSP563XX_REG_IDX_R0, DSP563XX_REG_IDX_R1, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, ERROR_TARGET_NOT_HALTED, jtag_execute_queue(), LOG_DEBUG, LOG_WARNING, MEM_P, MEM_X, MEM_Y, dsp563xx_common::read_core_reg, reg_cache::reg_list, size, target::state, target::tap, target_buffer_set_u32(), TARGET_HALTED, target_to_dsp563xx(), and reg::valid.
Referenced by dsp563xx_read_memory().
|
static |
Definition at line 1666 of file dsp563xx.c.
References buffer, count, dsp563xx_get_default_memory(), dsp563xx_read_memory(), and size.
|
static |
Definition at line 730 of file dsp563xx.c.
References reg::arch_info, dsp563xx_common::core_cache, dsp563xx_common::core_regs, DSP563XX_REG_IDX_AAR0, DSP563XX_REG_IDX_AAR1, DSP563XX_REG_IDX_AAR2, DSP563XX_REG_IDX_AAR3, DSP563XX_REG_IDX_BCR, DSP563XX_REG_IDX_DCR, DSP563XX_REG_IDX_IPRC, DSP563XX_REG_IDX_IPRP, DSP563XX_REG_IDX_PC, DSP563XX_REG_IDX_SSH, DSP563XX_REG_IDX_SSL, dsp563xx_reg_pc_read(), dsp563xx_reg_read(), dsp563xx_reg_read_high_io(), dsp563xx_reg_ssh_read(), dsp563xx_reg_ssl_read(), dsp563xx_core_reg::eame, ERROR_OK, dsp563xx_core_reg::instr_mask, dsp563xx_core_reg::num, dsp563xx_common::read_core_reg, reg_cache::reg_list, target_to_dsp563xx(), and reg::valid.
Referenced by dsp563xx_debug_init(), dsp563xx_reg_ssh_read(), dsp563xx_reg_ssh_write(), dsp563xx_reg_ssl_read(), and dsp563xx_save_context().
|
static |
Definition at line 560 of file dsp563xx.c.
References dsp563xx_common::core_cache, dsp563xx_common::core_regs, reg::dirty, DSP563XX_REG_IDX_PC, ERROR_OK, LOG_DEBUG, ONCE_REG_IDX_OPABDR, ONCE_REG_IDX_OPABEX, ONCE_REG_IDX_OPABF11, ONCE_REG_IDX_OPABFR, once_regs, dsp563xx_common::read_core_reg, once_reg::reg, reg_cache::reg_list, and target_to_dsp563xx().
Referenced by dsp563xx_read_register().
|
static |
Definition at line 532 of file dsp563xx.c.
References dsp563xx_once_execute_sw_ir(), DSP563XX_ONCE_OGDBR, dsp563xx_once_reg_read(), eame, ERROR_OK, INSTR_MOVEP_REG_HIO, MEM_X, and target::tap.
Referenced by dsp563xx_read_register(), dsp563xx_reg_ssh_read(), and dsp563xx_reg_ssl_read().
|
static |
Definition at line 476 of file dsp563xx.c.
References dsp563xx_common::core_cache, reg::dirty, dsp563xx_once_execute_sw_ir(), DSP563XX_ONCE_OGDBR, dsp563xx_once_reg_read(), DSP563XX_REG_IDX_R0, EAME_R0, ERROR_OK, instr_mask, INSTR_MOVEP_REG_HIO, MEM_X, dsp563xx_common::read_core_reg, reg_cache::reg_list, target::tap, target_to_dsp563xx(), and reg::valid.
Referenced by dsp563xx_read_register().
|
static |
Definition at line 599 of file dsp563xx.c.
References reg::arch_info, dsp563xx_common::core_cache, dsp563xx_common::core_regs, dsp563xx_read_register(), DSP563XX_REG_IDX_EP, DSP563XX_REG_IDX_SC, DSP563XX_REG_IDX_SP, DSP563XX_REG_IDX_SSH, dsp563xx_reg_read(), dsp563xx_write_register(), dsp563xx_core_reg::eame, ERROR_OK, dsp563xx_common::read_core_reg, reg_cache::reg_list, sp, and target_to_dsp563xx().
Referenced by dsp563xx_read_register().
|
static |
Definition at line 659 of file dsp563xx.c.
References reg::arch_info, dsp563xx_common::core_cache, dsp563xx_common::core_regs, dsp563xx_read_register(), DSP563XX_REG_IDX_SP, DSP563XX_REG_IDX_SSH, dsp563xx_reg_write(), dsp563xx_write_register(), ERROR_OK, dsp563xx_core_reg::instr_mask, dsp563xx_common::read_core_reg, reg_cache::reg_list, sp, and target_to_dsp563xx().
Referenced by dsp563xx_write_register().
|
static |
Definition at line 701 of file dsp563xx.c.
References reg::arch_info, dsp563xx_common::core_cache, dsp563xx_common::core_regs, dsp563xx_read_register(), DSP563XX_REG_IDX_SP, DSP563XX_REG_IDX_SSL, dsp563xx_reg_read(), dsp563xx_core_reg::eame, ERROR_OK, dsp563xx_common::read_core_reg, reg_cache::reg_list, sp, and target_to_dsp563xx().
Referenced by dsp563xx_read_register().
|
static |
Definition at line 549 of file dsp563xx.c.
References dsp563xx_once_execute_dw_ir(), dsp563xx_once_execute_sw_ir(), ERROR_OK, instr_mask, and target::tap.
Referenced by dsp563xx_debug_init(), dsp563xx_reg_ssh_write(), and dsp563xx_write_register().
|
static |
Definition at line 506 of file dsp563xx.c.
References dsp563xx_common::core_cache, reg::dirty, dsp563xx_once_execute_dw_ir(), dsp563xx_once_execute_sw_ir(), DSP563XX_REG_IDX_R0, EAME_R0, ERROR_OK, instr_mask, INSTR_MOVEP_REG_HIO, MEM_X, dsp563xx_common::read_core_reg, reg_cache::reg_list, target::tap, target_to_dsp563xx(), and reg::valid.
Referenced by dsp563xx_write_register().
|
static |
Definition at line 2076 of file dsp563xx.c.
References dsp563xx_remove_custom_watchpoint().
|
static |
Definition at line 1981 of file dsp563xx.c.
References BPU_NONE, BPU_WATCHPOINT, DSP563XX_ONCE_OBCR, dsp563xx_once_reg_write(), ERROR_OK, ERROR_TARGET_INVALID, dsp563xx_common::hardware_breakpoint, LOG_ERROR, target::tap, target_to_dsp563xx(), and hardware_breakpoint::used.
Referenced by COMMAND_HANDLER(), and dsp563xx_remove_breakpoint().
|
static |
Definition at line 1872 of file dsp563xx.c.
References ERROR_TARGET_RESOURCE_NOT_AVAILABLE.
|
static |
Definition at line 846 of file dsp563xx.c.
References DSP563XX_NUMCOREREGS, dsp563xx_write_register(), and ERROR_OK.
Referenced by dsp563xx_resume(), and dsp563xx_step_ex().
|
static |
Definition at line 1117 of file dsp563xx.c.
References dsp563xx_common::core_cache, dsp563xx_common::core_regs, reg::dirty, DSP563XX_ONCE_OCR_EX, DSP563XX_ONCE_OCR_GO, DSP563XX_ONCE_OPDBR, DSP563XX_ONCE_PDBGOTO, dsp563xx_once_reg_write(), DSP563XX_REG_IDX_PC, dsp563xx_restore_context(), dsp563xx_write_core_reg(), ERROR_OK, INSTR_JUMP, LOG_DEBUG, ONCE_REG_IDX_OPDBR, ONCE_REG_IDX_OPILR, once_regs, once_reg::reg, reg_cache::reg_list, register_cache_invalidate(), target::state, target::tap, target_call_event_callbacks(), TARGET_EVENT_DEBUG_RESUMED, TARGET_PRIXADDR, TARGET_RUNNING, and target_to_dsp563xx().
Referenced by dsp563xx_add_custom_watchpoint().
|
static |
Definition at line 1373 of file dsp563xx.c.
References buf_get_u32(), buf_set_u32(), dsp563xx_common::core_cache, direction, dsp563xx_set_core_reg(), ERROR_OK, ERROR_TARGET_NOT_HALTED, LOG_ERROR, LOG_TARGET_ERROR, PARAM_IN, PARAM_OUT, reg_param::reg_name, register_get_by_name(), size, reg_param::size, reg::size, target::state, TARGET_HALTED, target_read_buffer(), target_resume(), target_to_dsp563xx(), target_wait_state(), target_write_buffer(), and reg::value.
|
static |
Definition at line 833 of file dsp563xx.c.
References DSP563XX_NUMCOREREGS, dsp563xx_read_register(), and ERROR_OK.
Referenced by dsp563xx_debug_init().
|
static |
Definition at line 412 of file dsp563xx.c.
Referenced by dsp563xx_run_algorithm().
|
static |
Definition at line 1290 of file dsp563xx.c.
References dsp563xx_common::core_regs, DBG_REASON_SINGLESTEP, target::debug_reason, DSP563XX_REG_IDX_PC, dsp563xx_step_ex(), ERROR_OK, ERROR_TARGET_NOT_HALTED, LOG_INFO, LOG_TARGET_ERROR, target::state, target_call_event_callbacks(), TARGET_EVENT_HALTED, TARGET_HALTED, and target_to_dsp563xx().
|
static |
Definition at line 1174 of file dsp563xx.c.
References dsp563xx_common::core_cache, dsp563xx_common::core_regs, reg::dirty, dsp563xx_debug_init(), dsp563xx_jtag_debug_request(), DSP563XX_ONCE_OCR_EX, DSP563XX_ONCE_OCR_GO, DSP563XX_ONCE_OPABDR, DSP563XX_ONCE_OPABEX, DSP563XX_ONCE_OPABFR, DSP563XX_ONCE_OPDBR, DSP563XX_ONCE_OSCR, DSP563XX_ONCE_OSCR_TME, DSP563XX_ONCE_OSCR_TO, DSP563XX_ONCE_OTC, DSP563XX_ONCE_PDBGOTO, dsp563xx_once_reg_read(), dsp563xx_once_reg_write(), DSP563XX_REG_IDX_PC, dsp563xx_restore_context(), dsp563xx_write_core_reg(), ERROR_OK, INSTR_JUMP, LOG_DEBUG, ONCE_REG_IDX_OPDBR, ONCE_REG_IDX_OPILR, once_regs, once_reg::reg, reg_cache::reg_list, register_cache_invalidate(), target::state, target::tap, TARGET_HALTED, and target_to_dsp563xx().
Referenced by dsp563xx_deassert_reset(), and dsp563xx_step().
|
static |
Definition at line 883 of file dsp563xx.c.
References target::arch_info, dsp563xx_read_core_reg(), dsp563xx_write_core_reg(), ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, dsp563xx_common::jtag_info, dsp563xx_common::read_core_reg, mcu_jtag::tap, target::tap, and dsp563xx_common::write_core_reg.
|
static |
Definition at line 1850 of file dsp563xx.c.
References buffer, dsp563xx_get_default_memory(), dsp563xx_write_memory(), and size.
|
static |
Definition at line 382 of file dsp563xx.c.
References buf_get_u32(), dsp563xx_common::core_cache, dsp563xx_common::core_regs, reg::dirty, DSP563XX_NUMCOREREGS, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, reg_cache::reg_list, target_to_dsp563xx(), reg::valid, and reg::value.
Referenced by dsp563xx_resume(), dsp563xx_step_ex(), and dsp563xx_target_create().
|
static |
Definition at line 1771 of file dsp563xx.c.
References buf_get_u32(), buf_set_u32(), buffer, count, dsp563xx_write_memory_core(), ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_DEBUG, MEM_L, MEM_X, MEM_Y, and size.
Referenced by COMMAND_HANDLER(), dsp563xx_write_buffer_default(), and dsp563xx_write_memory_default().
|
static |
Definition at line 1687 of file dsp563xx.c.
References buffer, dsp563xx_common::core_cache, count, reg::dirty, dsp563xx_invalidate_x_context(), dsp563xx_once_execute_dw_ir(), dsp563xx_once_execute_sw_ir(), DSP563XX_REG_IDX_R0, DSP563XX_REG_IDX_R1, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, ERROR_TARGET_NOT_HALTED, jtag_execute_queue(), LOG_DEBUG, LOG_TARGET_ERROR, MEM_P, MEM_X, MEM_Y, dsp563xx_common::read_core_reg, reg_cache::reg_list, size, target::state, target::tap, target_buffer_get_u32(), TARGET_HALTED, TARGET_PRIxADDR, target_to_dsp563xx(), and reg::valid.
Referenced by dsp563xx_write_memory().
|
static |
Definition at line 1840 of file dsp563xx.c.
References buffer, count, dsp563xx_get_default_memory(), dsp563xx_write_memory(), and size.
|
static |
Definition at line 781 of file dsp563xx.c.
References reg::arch_info, dsp563xx_common::core_cache, dsp563xx_common::core_regs, reg::dirty, DSP563XX_REG_IDX_AAR0, DSP563XX_REG_IDX_AAR1, DSP563XX_REG_IDX_AAR2, DSP563XX_REG_IDX_AAR3, DSP563XX_REG_IDX_BCR, DSP563XX_REG_IDX_DCR, DSP563XX_REG_IDX_IPRC, DSP563XX_REG_IDX_IPRP, DSP563XX_REG_IDX_PC, DSP563XX_REG_IDX_SP, DSP563XX_REG_IDX_SSH, DSP563XX_REG_IDX_SSL, dsp563xx_reg_ssh_write(), dsp563xx_reg_write(), dsp563xx_reg_write_high_io(), ERROR_OK, dsp563xx_core_reg::instr_mask, dsp563xx_core_reg::num, reg_cache::reg_list, target_to_dsp563xx(), reg::valid, and dsp563xx_common::write_core_reg.
Referenced by dsp563xx_reg_ssh_read(), dsp563xx_reg_ssh_write(), and dsp563xx_restore_context().
unsigned int bits |
Definition at line 225 of file dsp563xx.c.
|
static |
Definition at line 2088 of file dsp563xx.c.
|
static |
Definition at line 412 of file dsp563xx.c.
Referenced by dsp563xx_build_reg_cache().
const { ... } dsp563xx_regs[] |
Referenced by dsp563xx_build_reg_cache().
struct target_type dsp563xx_target |
Holds methods for DSP563XX targets.
Definition at line 2088 of file dsp563xx.c.
uint8_t eame |
Definition at line 227 of file dsp563xx.c.
Referenced by dsp563xx_reg_read().
|
static |
Definition at line 325 of file dsp563xx.c.
Referenced by dsp563xx_get_gdb_reg_list().
|
extern |
Definition at line 233 of file openocd.c.
Referenced by dsp563xx_get_default_memory().
unsigned int id |
Definition at line 223 of file dsp563xx.c.
uint32_t instr_mask |
Definition at line 228 of file dsp563xx.c.
Referenced by dsp563xx_reg_read_high_io(), dsp563xx_reg_write(), and dsp563xx_reg_write_high_io().
const char* name |
Definition at line 224 of file dsp563xx.c.
|
static |
Definition at line 1 of file dsp563xx.c.
Referenced by dsp563xx_debug_once_init(), dsp563xx_reg_pc_read(), dsp563xx_resume(), and dsp563xx_step_ex().