OpenOCD
|
Go to the source code of this file.
Functions | |
static int | aice_assert_srst (struct aice_port_s *aice, enum aice_srst_type_s srst) |
int | aice_cache_ctl (struct aice_port_s *aice, uint32_t subtype, uint32_t address) |
static int | aice_close (struct aice_port_s *aice) |
int | aice_execute (struct aice_port_s *aice, uint32_t *instructions, uint32_t instruction_num) |
static int | aice_halt (struct aice_port_s *aice) |
static int | aice_idcode (struct aice_port_s *aice, uint32_t *idcode, uint8_t *num_of_idcode) |
static int | aice_memory_access (struct aice_port_s *aice, enum nds_memory_access a_access) |
static int | aice_memory_mode (struct aice_port_s *aice, enum nds_memory_select mem_select) |
static int | aice_open (struct aice_port_s *aice, struct aice_port_param_s *param) |
int | aice_profiling (struct aice_port_s *aice, uint32_t interval, uint32_t iteration, uint32_t reg_no, uint32_t *samples, uint32_t *num_samples) |
int | aice_program_edm (struct aice_port_s *aice, char *command_sequence) |
static int | aice_read_debug_reg (struct aice_port_s *aice, uint32_t addr, uint32_t *val) |
static int | aice_read_mem_bulk (struct aice_port_s *aice, uint32_t addr, uint32_t length, uint8_t *buffer) |
static int | aice_read_mem_unit (struct aice_port_s *aice, uint32_t addr, uint32_t size, uint32_t count, uint8_t *buffer) |
int | aice_read_reg_64 (struct aice_port_s *aice, uint32_t num, uint64_t *val) |
static int | aice_read_register (struct aice_port_s *aice, uint32_t num, uint32_t *val) |
int | aice_read_tlb (struct aice_port_s *aice, target_addr_t virtual_address, target_addr_t *physical_address) |
static int | aice_reset (struct aice_port_s *aice) |
static int | aice_run (struct aice_port_s *aice) |
int | aice_set_command_mode (struct aice_port_s *aice, enum aice_command_mode command_mode) |
int | aice_set_count_to_check_dbger (struct aice_port_s *aice, uint32_t count_to_check) |
int | aice_set_custom_restart_script (struct aice_port_s *aice, const char *script) |
int | aice_set_custom_srst_script (struct aice_port_s *aice, const char *script) |
int | aice_set_custom_trst_script (struct aice_port_s *aice, const char *script) |
static int | aice_set_data_endian (struct aice_port_s *aice, enum aice_target_endian target_data_endian) |
static int | aice_set_jtag_clock (struct aice_port_s *aice, uint32_t a_clock) |
int | aice_set_retry_times (struct aice_port_s *aice, uint32_t a_retry_times) |
static int | aice_state (struct aice_port_s *aice, enum aice_target_state_s *state) |
static int | aice_step (struct aice_port_s *aice) |
static int | aice_write_debug_reg (struct aice_port_s *aice, uint32_t addr, const uint32_t val) |
static int | aice_write_mem_bulk (struct aice_port_s *aice, uint32_t addr, uint32_t length, const uint8_t *buffer) |
static int | aice_write_mem_unit (struct aice_port_s *aice, uint32_t addr, uint32_t size, uint32_t count, const uint8_t *buffer) |
int | aice_write_reg_64 (struct aice_port_s *aice, uint32_t num, uint64_t val) |
static int | aice_write_register (struct aice_port_s *aice, uint32_t num, uint32_t val) |
|
inlinestatic |
Definition at line 46 of file nds32_aice.h.
References aice_port::api, aice_port_api_s::assert_srst, aice_port_s::coreid, and aice_port_s::port.
Referenced by nds32_assert_reset(), nds32_reset_halt(), and nds32_soft_reset_halt().
int aice_cache_ctl | ( | struct aice_port_s * | aice, |
uint32_t | subtype, | ||
uint32_t | address | ||
) |
Definition at line 45 of file nds32_aice.c.
References aice_port::api, aice_port_api_s::cache_ctl, aice_port_s::coreid, ERROR_FAIL, LOG_WARNING, and aice_port_s::port.
Referenced by COMMAND_HANDLER(), and nds32_cache_sync().
|
inlinestatic |
Definition at line 36 of file nds32_aice.h.
References aice_port::api, aice_port_api_s::close, and aice_port_s::port.
int aice_execute | ( | struct aice_port_s * | aice, |
uint32_t * | instructions, | ||
uint32_t | instruction_num | ||
) |
Definition at line 86 of file nds32_aice.c.
References aice_port::api, aice_port_s::coreid, ERROR_FAIL, aice_port_api_s::execute, instructions, LOG_WARNING, and aice_port_s::port.
Referenced by nds32_v3_leave_debug_state().
|
inlinestatic |
Definition at line 57 of file nds32_aice.h.
References aice_port::api, aice_port_s::coreid, aice_port_api_s::halt, and aice_port_s::port.
Referenced by nds32_halt().
|
inlinestatic |
Definition at line 115 of file nds32_aice.h.
References aice_port::api, aice_port_api_s::idcode, and aice_port_s::port.
|
inlinestatic |
Definition at line 132 of file nds32_aice.h.
References aice_port::api, aice_port_s::coreid, aice_port_api_s::memory_access, and aice_port_s::port.
Referenced by COMMAND_HANDLER(), nds32_read_phys_memory(), nds32_v3_read_buffer(), nds32_v3_read_memory(), nds32_v3_write_buffer(), and nds32_write_phys_memory().
|
inlinestatic |
Definition at line 138 of file nds32_aice.h.
References aice_port::api, aice_port_s::coreid, aice_port_api_s::memory_mode, and aice_port_s::port.
Referenced by COMMAND_HANDLER(), and nds32_select_memory_mode().
|
inlinestatic |
Definition at line 31 of file nds32_aice.h.
References aice_port::api, aice_port_api_s::open, param, and aice_port_s::port.
int aice_profiling | ( | struct aice_port_s * | aice, |
uint32_t | interval, | ||
uint32_t | iteration, | ||
uint32_t | reg_no, | ||
uint32_t * | samples, | ||
uint32_t * | num_samples | ||
) |
Definition at line 137 of file nds32_aice.c.
References aice_port::api, aice_port_s::coreid, ERROR_FAIL, LOG_WARNING, aice_port_s::port, and aice_port_api_s::profiling.
Referenced by nds32_profiling().
int aice_program_edm | ( | struct aice_port_s * | aice, |
char * | command_sequence | ||
) |
Definition at line 65 of file nds32_aice.c.
References aice_port::api, aice_port_s::coreid, ERROR_FAIL, LOG_WARNING, aice_port_s::port, and aice_port_api_s::program_edm.
Referenced by nds32_login().
|
inlinestatic |
Definition at line 79 of file nds32_aice.h.
References addr, aice_port::api, aice_port_s::coreid, aice_port_s::port, and aice_port_api_s::read_debug_reg.
Referenced by jim_nds32_read_edm_sr(), nds32_edm_config(), nds32_gdb_attach(), nds32_login(), nds32_v2_examine(), nds32_v3_activate_hardware_watchpoint(), nds32_v3_deactivate_hardware_watchpoint(), nds32_v3_deassert_reset(), nds32_v3_examine(), nds32_v3_get_debug_reason(), nds32_v3_get_exception_address(), nds32_v3_leave_debug_state(), nds32_v3m_activate_hardware_watchpoint(), nds32_v3m_deactivate_hardware_watchpoint(), and nds32_v3m_examine().
|
inlinestatic |
Definition at line 103 of file nds32_aice.h.
References addr, aice_port::api, buffer, aice_port_s::coreid, length, aice_port_s::port, and aice_port_api_s::read_mem_bulk.
Referenced by nds32_read_buffer().
|
inlinestatic |
Definition at line 91 of file nds32_aice.h.
References addr, aice_port::api, buffer, aice_port_s::coreid, count, aice_port_s::port, aice_port_api_s::read_mem_unit, and size.
Referenced by nds32_read_buffer(), nds32_read_memory(), and nds32_read_phys_memory().
int aice_read_reg_64 | ( | struct aice_port_s * | aice, |
uint32_t | num, | ||
uint64_t * | val | ||
) |
Definition at line 14 of file nds32_aice.c.
References aice_port::api, aice_port_s::coreid, ERROR_FAIL, LOG_WARNING, aice_port_s::port, and aice_port_api_s::read_reg_64.
Referenced by nds32_get_core_reg_64().
|
inlinestatic |
Definition at line 67 of file nds32_aice.h.
References aice_port::api, aice_port_s::coreid, aice_port_s::port, and aice_port_api_s::read_reg.
Referenced by nds32_get_core_reg(), nds32_set_core_reg(), nds32_v2_check_interrupt_stack(), nds32_v2_get_debug_reason(), nds32_v2_get_exception_address(), and nds32_v3_leave_debug_state().
int aice_read_tlb | ( | struct aice_port_s * | aice, |
target_addr_t | virtual_address, | ||
target_addr_t * | physical_address | ||
) |
Definition at line 34 of file nds32_aice.c.
References aice_port::api, aice_port_s::coreid, ERROR_FAIL, LOG_WARNING, aice_port_s::port, and aice_port_api_s::read_tlb.
Referenced by nds32_probe_tlb().
|
inlinestatic |
Definition at line 41 of file nds32_aice.h.
References aice_port::api, aice_port_s::port, and aice_port_api_s::reset.
|
inlinestatic |
Definition at line 52 of file nds32_aice.h.
References aice_port::api, aice_port_s::coreid, aice_port_s::port, and aice_port_api_s::run.
Referenced by nds32_poll(), and nds32_resume().
int aice_set_command_mode | ( | struct aice_port_s * | aice, |
enum aice_command_mode | command_mode | ||
) |
Definition at line 75 of file nds32_aice.c.
References aice_port::api, ERROR_FAIL, LOG_WARNING, aice_port_s::port, and aice_port_api_s::set_command_mode.
Referenced by jim_nds32_multi_write().
int aice_set_count_to_check_dbger | ( | struct aice_port_s * | aice, |
uint32_t | count_to_check | ||
) |
Definition at line 127 of file nds32_aice.c.
References aice_port::api, ERROR_FAIL, LOG_WARNING, aice_port_s::port, and aice_port_api_s::set_count_to_check_dbger.
int aice_set_custom_restart_script | ( | struct aice_port_s * | aice, |
const char * | script | ||
) |
Definition at line 117 of file nds32_aice.c.
References aice_port::api, ERROR_FAIL, LOG_WARNING, aice_port_s::port, and aice_port_api_s::set_custom_restart_script.
int aice_set_custom_srst_script | ( | struct aice_port_s * | aice, |
const char * | script | ||
) |
Definition at line 97 of file nds32_aice.c.
References aice_port::api, ERROR_FAIL, LOG_WARNING, aice_port_s::port, and aice_port_api_s::set_custom_srst_script.
int aice_set_custom_trst_script | ( | struct aice_port_s * | aice, |
const char * | script | ||
) |
Definition at line 107 of file nds32_aice.c.
References aice_port::api, ERROR_FAIL, LOG_WARNING, aice_port_s::port, and aice_port_api_s::set_custom_trst_script.
|
inlinestatic |
Definition at line 144 of file nds32_aice.h.
References aice_port::api, aice_port_s::coreid, aice_port_s::port, and aice_port_api_s::set_data_endian.
Referenced by nds32_update_psw().
|
inlinestatic |
Definition at line 127 of file nds32_aice.h.
References aice_port::api, aice_port_s::port, and aice_port_api_s::set_jtag_clock.
int aice_set_retry_times | ( | struct aice_port_s * | aice, |
uint32_t | a_retry_times | ||
) |
Definition at line 55 of file nds32_aice.c.
References aice_port::api, ERROR_FAIL, LOG_WARNING, aice_port_s::port, and aice_port_api_s::set_retry_times.
|
inlinestatic |
Definition at line 121 of file nds32_aice.h.
References aice_port::api, aice_port_s::coreid, aice_port_s::port, aice_port_api_s::state, and state.
Referenced by nds32_target_state().
|
inlinestatic |
Definition at line 62 of file nds32_aice.h.
References aice_port::api, aice_port_s::coreid, aice_port_s::port, and aice_port_api_s::step.
Referenced by nds32_step(), nds32_step_without_watchpoint(), and nds32_v3_leave_debug_state().
|
inlinestatic |
Definition at line 85 of file nds32_aice.h.
References addr, aice_port::api, aice_port_s::coreid, aice_port_s::port, and aice_port_api_s::write_debug_reg.
Referenced by jim_nds32_write_edm_sr(), nds32_gdb_detach(), nds32_v2_activate_hardware_breakpoint(), nds32_v2_activate_hardware_watchpoint(), nds32_v2_deactivate_hardware_breakpoint(), nds32_v2_deactivate_hardware_watchpoint(), nds32_v3_activate_hardware_breakpoint(), nds32_v3_activate_hardware_watchpoint(), nds32_v3_deactivate_hardware_breakpoint(), nds32_v3_deactivate_hardware_watchpoint(), nds32_v3_deassert_reset(), nds32_v3_get_exception_address(), nds32_v3_leave_debug_state(), nds32_v3m_activate_hardware_breakpoint(), nds32_v3m_activate_hardware_watchpoint(), nds32_v3m_deactivate_hardware_breakpoint(), nds32_v3m_deactivate_hardware_watchpoint(), and nds32_v3m_examine().
|
inlinestatic |
Definition at line 109 of file nds32_aice.h.
References addr, aice_port::api, buffer, aice_port_s::coreid, length, aice_port_s::port, and aice_port_api_s::write_mem_bulk.
Referenced by nds32_write_buffer().
|
inlinestatic |
Definition at line 97 of file nds32_aice.h.
References addr, aice_port::api, buffer, aice_port_s::coreid, count, aice_port_s::port, size, and aice_port_api_s::write_mem_unit.
Referenced by nds32_write_buffer(), nds32_write_memory(), and nds32_write_phys_memory().
int aice_write_reg_64 | ( | struct aice_port_s * | aice, |
uint32_t | num, | ||
uint64_t | val | ||
) |
Definition at line 24 of file nds32_aice.c.
References aice_port::api, aice_port_s::coreid, ERROR_FAIL, LOG_WARNING, aice_port_s::port, and aice_port_api_s::write_reg_64.
Referenced by nds32_restore_context().
|
inlinestatic |
Definition at line 73 of file nds32_aice.h.
References aice_port::api, aice_port_s::coreid, aice_port_s::port, and aice_port_api_s::write_reg.
Referenced by nds32_restore_context(), nds32_set_core_reg(), nds32_v2_check_interrupt_stack(), nds32_v2_restore_interrupt_stack(), and nds32_v3_leave_debug_state().