OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | mem_ap |
struct | mem_ap_alloc_reg_list |
Macros | |
#define | MAX_REG_SIZE 96 |
#define | MEM_AP_COMMON_MAGIC 0x4DE4DA50 |
#define | NUM_REGS 26 |
#define | REG_EXIST(n) ((n) < 16) |
#define | REG_SIZE(n) ((((n) >= 16) && ((n) < 24)) ? 96 : 32) |
Functions | |
static int | mem_ap_arch_state (struct target *target) |
static int | mem_ap_assert_reset (struct target *target) |
static int | mem_ap_deassert_reset (struct target *target) |
static void | mem_ap_deinit_target (struct target *target) |
static int | mem_ap_examine (struct target *target) |
static const char * | mem_ap_get_gdb_arch (struct target *target) |
static int | mem_ap_get_gdb_reg_list (struct target *target, struct reg **reg_list[], int *reg_list_size, enum target_register_class reg_class) |
static int | mem_ap_halt (struct target *target) |
static int | mem_ap_init_target (struct command_context *cmd_ctx, struct target *target) |
static int | mem_ap_poll (struct target *target) |
static int | mem_ap_read_memory (struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer) |
static int | mem_ap_reg_get (struct reg *reg) |
static int | mem_ap_reg_set (struct reg *reg, uint8_t *buf) |
static int | mem_ap_resume (struct target *target, int current, target_addr_t address, int handle_breakpoints, int debug_execution) |
static int | mem_ap_step (struct target *target, int current, target_addr_t address, int handle_breakpoints) |
static int | mem_ap_target_create (struct target *target, Jim_Interp *interp) |
static int | mem_ap_write_memory (struct target *target, target_addr_t address, uint32_t size, uint32_t count, const uint8_t *buffer) |
Variables | |
static struct reg_arch_type | mem_ap_reg_arch_type |
struct target_type | mem_ap_target |
#define REG_SIZE | ( | n | ) | ((((n) >= 16) && ((n) < 24)) ? 96 : 32) |
|
static |
|
static |
Definition at line 125 of file mem_ap.c.
References DBG_REASON_UNDEFINED, target::debug_reason, ERROR_OK, LOG_DEBUG, target::state, and TARGET_RESET.
|
static |
Definition at line 155 of file mem_ap.c.
References DBG_REASON_DBGRQ, DBG_REASON_NOTHALTED, target::debug_reason, ERROR_OK, LOG_DEBUG, target::reset_halt, target::state, target_call_event_callbacks(), TARGET_EVENT_HALTED, TARGET_HALTED, and TARGET_RUNNING.
|
static |
Definition at line 67 of file mem_ap.c.
References mem_ap::ap, target::arch_info, dap_put_ap(), LOG_DEBUG, and target::private_config.
|
static |
Definition at line 134 of file mem_ap.c.
References mem_ap::ap, mem_ap::ap_num, target::arch_info, mem_ap::dap, dap_get_ap(), DBG_REASON_UNDEFINED, target::debug_reason, ERROR_FAIL, ERROR_OK, LOG_ERROR, mem_ap_init(), target::state, target_set_examined(), TARGET_UNKNOWN, and target_was_examined().
|
static |
|
static |
Definition at line 211 of file mem_ap.c.
References ERROR_FAIL, ERROR_OK, LOG_ERROR, mem_ap_reg_arch_type, NUM_REGS, REG_EXIST, mem_ap_alloc_reg_list::reg_list, REG_SIZE, regs, mem_ap_alloc_reg_list::regs, and mem_ap_alloc_reg_list::regs_value.
|
static |
Definition at line 97 of file mem_ap.c.
References DBG_REASON_DBGRQ, target::debug_reason, ERROR_OK, LOG_DEBUG, target::state, target_call_event_callbacks(), TARGET_EVENT_HALTED, and TARGET_HALTED.
|
static |
Definition at line 59 of file mem_ap.c.
References DBG_REASON_UNDEFINED, target::debug_reason, ERROR_OK, LOG_DEBUG, target::state, and TARGET_UNKNOWN.
|
static |
Definition at line 87 of file mem_ap.c.
References DBG_REASON_NOTHALTED, target::debug_reason, ERROR_OK, target::state, TARGET_RUNNING, and TARGET_UNKNOWN.
|
static |
Definition at line 236 of file mem_ap.c.
References mem_ap::ap, target::arch_info, buffer, count, ERROR_COMMAND_SYNTAX_ERROR, LOG_DEBUG, mem_ap_read_buf(), size, and TARGET_ADDR_FMT.
|
static |
|
static |
|
static |
Definition at line 106 of file mem_ap.c.
References DBG_REASON_NOTHALTED, target::debug_reason, ERROR_OK, LOG_DEBUG, target::state, and TARGET_RUNNING.
|
static |
Definition at line 115 of file mem_ap.c.
References DBG_REASON_DBGRQ, target::debug_reason, ERROR_OK, LOG_DEBUG, target::state, target_call_event_callbacks(), TARGET_EVENT_HALTED, and TARGET_HALTED.
|
static |
Definition at line 27 of file mem_ap.c.
References adiv5_private_config::ap_num, mem_ap::ap_num, target::arch_info, mem_ap::common_magic, adiv5_private_config::dap, mem_ap::dap, DP_APSEL_INVALID, ERROR_FAIL, ERROR_OK, target::gdb_port_override, LOG_ERROR, MEM_AP_COMMON_MAGIC, and target::private_config.
|
static |
|
static |
Definition at line 175 of file mem_ap.c.
Referenced by mem_ap_get_gdb_reg_list().
struct target_type mem_ap_target |