OpenOCD
|
Go to the source code of this file.
Macros | |
#define | ESP_XTENSA_DBGSTUBS_UPDATE_CODE_ENTRY(_e_) |
#define | ESP_XTENSA_DBGSTUBS_UPDATE_DATA_ENTRY(_e_) |
#define | MAX_PASS 1000 |
#define | MIN_PASS 200 |
Functions | |
int | esp_xtensa_arch_state (struct target *target) |
int | esp_xtensa_breakpoint_add (struct target *target, struct breakpoint *breakpoint) |
int | esp_xtensa_breakpoint_remove (struct target *target, struct breakpoint *breakpoint) |
static void | esp_xtensa_dbgstubs_addr_check (struct target *target) |
static void | esp_xtensa_dbgstubs_info_update (struct target *target) |
static int | esp_xtensa_dbgstubs_restore (struct target *target) |
int | esp_xtensa_init_arch_info (struct target *target, struct esp_xtensa_common *esp_xtensa, struct xtensa_debug_module_config *dm_cfg, const struct esp_semihost_ops *semihost_ops) |
int | esp_xtensa_on_halt (struct target *target) |
int | esp_xtensa_poll (struct target *target) |
int | esp_xtensa_profiling (struct target *target, uint32_t *samples, uint32_t max_num_samples, uint32_t *num_samples, uint32_t seconds) |
void | esp_xtensa_target_deinit (struct target *target) |
int | esp_xtensa_target_init (struct command_context *cmd_ctx, struct target *target) |
#define ESP_XTENSA_DBGSTUBS_UPDATE_CODE_ENTRY | ( | _e_ | ) |
Definition at line 31 of file esp_xtensa.c.
#define ESP_XTENSA_DBGSTUBS_UPDATE_DATA_ENTRY | ( | _e_ | ) |
Definition at line 22 of file esp_xtensa.c.
#define MAX_PASS 1000 |
#define MIN_PASS 200 |
int esp_xtensa_arch_state | ( | struct target * | target | ) |
Definition at line 100 of file esp_xtensa.c.
References ERROR_OK.
int esp_xtensa_breakpoint_add | ( | struct target * | target, |
struct breakpoint * | breakpoint | ||
) |
Definition at line 171 of file esp_xtensa.c.
References xtensa_breakpoint_add().
int esp_xtensa_breakpoint_remove | ( | struct target * | target, |
struct breakpoint * | breakpoint | ||
) |
Definition at line 177 of file esp_xtensa.c.
References xtensa_breakpoint_remove().
|
static |
Definition at line 121 of file esp_xtensa.c.
References esp_dbg_stubs::base, esp_common::dbg_stubs, ERROR_OK, esp_xtensa_common::esp, esp_xtensa_apptrace_status_reg_read(), esp_xtensa_apptrace_status_reg_write(), LOG_ERROR, LOG_TARGET_INFO, target_to_esp_xtensa(), and xtensa_data_addr_valid().
Referenced by esp_xtensa_poll().
|
static |
Definition at line 143 of file esp_xtensa.c.
References esp_dbg_stubs::base, esp_dbg_stubs_desc::data_alloc, esp_dbg_stubs_desc::data_free, esp_common::dbg_stubs, esp_dbg_stubs::desc, esp_dbg_stubs::entries, esp_dbg_stubs::entries_count, ERROR_OK, esp_xtensa_common::esp, ESP_DBG_STUB_DESC, esp_dbgstubs_table_read(), ESP_XTENSA_DBGSTUBS_UPDATE_CODE_ENTRY, ESP_XTENSA_DBGSTUBS_UPDATE_DATA_ENTRY, LOG_ERROR, esp_dbg_stubs_desc::min_stack_addr, target_read_buffer(), target_to_esp_xtensa(), and esp_dbg_stubs_desc::tramp_addr.
Referenced by esp_xtensa_on_halt().
|
static |
Definition at line 43 of file esp_xtensa.c.
References esp_dbg_stubs::base, esp_common::dbg_stubs, ERROR_OK, esp_xtensa_common::esp, esp_xtensa_apptrace_status_reg_write(), LOG_ERROR, LOG_TARGET_INFO, and target_to_esp_xtensa().
Referenced by esp_xtensa_target_deinit().
int esp_xtensa_init_arch_info | ( | struct target * | target, |
struct esp_xtensa_common * | esp_xtensa, | ||
struct xtensa_debug_module_config * | dm_cfg, | ||
const struct esp_semihost_ops * | semihost_ops | ||
) |
Definition at line 65 of file esp_xtensa.c.
References esp_xtensa_common::apptrace, ERROR_OK, esp_xtensa_common::esp, esp_common_init(), esp_xtensa_apptrace_hw, esp_xtensa_apptrace_info::hw, esp_semihost_data::ops, esp_xtensa_common::semihost, esp_xtensa_common::xtensa, xtensa_algo_hw, and xtensa_init_arch_info().
Referenced by esp_xtensa_smp_init_arch_info().
int esp_xtensa_on_halt | ( | struct target * | target | ) |
Definition at line 58 of file esp_xtensa.c.
References ERROR_OK, and esp_xtensa_dbgstubs_info_update().
Referenced by esp32s2_on_halt(), and esp_xtensa_smp_on_halt().
int esp_xtensa_poll | ( | struct target * | target | ) |
Definition at line 105 of file esp_xtensa.c.
References xtensa::dbg_mod, esp_common::dbg_stubs, esp_xtensa_common::esp, esp_xtensa_dbgstubs_addr_check(), LOG_TARGET_DEBUG, PWRSTAT_COREWASRESET, target::state, TARGET_DEBUG_RUNNING, target_to_esp_xtensa(), target_to_xtensa(), xtensa_dm_power_status_get(), and xtensa_poll().
Referenced by esp32s2_poll(), and esp_xtensa_smp_poll().
int esp_xtensa_profiling | ( | struct target * | target, |
uint32_t * | samples, | ||
uint32_t | max_num_samples, | ||
uint32_t * | num_samples, | ||
uint32_t | seconds | ||
) |
Definition at line 183 of file esp_xtensa.c.
References buf_get_u32(), xtensa::dbg_mod, ERROR_OK, gettimeofday(), LOG_TARGET_ERROR, LOG_TARGET_INFO, MAX_PASS, MIN_PASS, NULL, target::state, TARGET_HALTED, target_poll(), target_profiling_default(), target_resume(), target_to_xtensa(), timeval_add_time(), timeval_compare(), XDMREG_DEBUGPC, xtensa_dm_queue_execute(), and xtensa_queue_dbg_reg_read().
void esp_xtensa_target_deinit | ( | struct target * | target | ) |
Definition at line 87 of file esp_xtensa.c.
References ERROR_OK, esp_xtensa_dbgstubs_restore(), LOG_DEBUG, target_to_esp_xtensa(), target_was_examined(), and xtensa_target_deinit().
int esp_xtensa_target_init | ( | struct command_context * | cmd_ctx, |
struct target * | target | ||
) |
Definition at line 82 of file esp_xtensa.c.
References xtensa_target_init().
Referenced by esp_xtensa_smp_target_init().