OpenOCD
|
Go to the source code of this file.
Functions | |
COMMAND_HANDLER (handle_nds32_auto_break_command) | |
COMMAND_HANDLER (handle_nds32_boot_time_command) | |
COMMAND_HANDLER (handle_nds32_cache_command) | |
COMMAND_HANDLER (handle_nds32_dcache_command) | |
COMMAND_HANDLER (handle_nds32_decode_command) | |
COMMAND_HANDLER (handle_nds32_dssim_command) | |
COMMAND_HANDLER (handle_nds32_global_stop_command) | |
COMMAND_HANDLER (handle_nds32_icache_command) | |
COMMAND_HANDLER (handle_nds32_keep_target_edm_ctl_command) | |
COMMAND_HANDLER (handle_nds32_login_edm_operation_command) | |
COMMAND_HANDLER (handle_nds32_login_edm_passcode_command) | |
COMMAND_HANDLER (handle_nds32_memory_access_command) | |
COMMAND_HANDLER (handle_nds32_memory_mode_command) | |
COMMAND_HANDLER (handle_nds32_query_cpuid_command) | |
COMMAND_HANDLER (handle_nds32_query_endian_command) | |
COMMAND_HANDLER (handle_nds32_query_target_command) | |
COMMAND_HANDLER (handle_nds32_reset_halt_as_init_command) | |
COMMAND_HANDLER (handle_nds32_soft_reset_halt_command) | |
COMMAND_HANDLER (handle_nds32_virtual_hosting_command) | |
COMMAND_HANDLER (handle_nds32_word_access_mem_command) | |
static int | jim_nds32_bulk_read (Jim_Interp *interp, int argc, Jim_Obj *const *argv) |
static int | jim_nds32_bulk_write (Jim_Interp *interp, int argc, Jim_Obj *const *argv) |
static int | jim_nds32_multi_write (Jim_Interp *interp, int argc, Jim_Obj *const *argv) |
static int | jim_nds32_read_edm_sr (Jim_Interp *interp, int argc, Jim_Obj *const *argv) |
static int | jim_nds32_write_edm_sr (Jim_Interp *interp, int argc, Jim_Obj *const *argv) |
Variables | |
const struct command_registration | nds32_command_handlers [] |
struct nds32_edm_operation | nds32_edm_ops [NDS32_EDM_OPERATION_MAX_NUM] |
uint32_t | nds32_edm_ops_num |
static const struct command_registration | nds32_exec_command_handlers [] |
static const struct command_registration | nds32_query_command_handlers [] |
static const char *const | nds_memory_access_name [] |
static const char *const | nds_memory_select_name [] |
COMMAND_HANDLER | ( | handle_nds32_auto_break_command | ) |
Definition at line 338 of file nds32_cmd.c.
References nds32::auto_convert_hw_bp, CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), ERROR_FAIL, ERROR_OK, get_current_target(), is_nds32(), target_name(), and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_boot_time_command | ) |
Definition at line 440 of file nds32_cmd.c.
References nds32::boot_time, CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, command_print(), ERROR_FAIL, ERROR_OK, get_current_target(), is_nds32(), and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_cache_command | ) |
Definition at line 144 of file nds32_cmd.c.
References aice_cache_ctl(), AICE_CACHE_CTL_L1D_INVALALL, AICE_CACHE_CTL_L1D_WBALL, AICE_CACHE_CTL_L1I_INVALALL, CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), nds32_memory::dcache, nds32_cache::enable, ERROR_FAIL, ERROR_OK, get_current_target(), nds32_memory::icache, is_nds32(), nds32_cache::line_size, nds32::memory, target_name(), target_to_aice(), and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_dcache_command | ) |
Definition at line 273 of file nds32_cmd.c.
References aice_cache_ctl(), AICE_CACHE_CTL_L1D_INVALALL, AICE_CACHE_CTL_L1D_WBALL, CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), nds32_memory::dcache, nds32_cache::enable, ERROR_FAIL, ERROR_OK, get_current_target(), IR8, is_nds32(), nds32_cache::line_size, nds32::memory, nds32_get_mapped_reg(), nds32_set_mapped_reg(), target_name(), target_to_aice(), and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_decode_command | ) |
Definition at line 542 of file nds32_cmd.c.
References addr, CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, command_print(), ERROR_FAIL, ERROR_OK, get_current_target(), nds32_instruction::instruction_size, is_nds32(), nds32_evaluate_opcode(), nds32_read_opcode(), nds32_instruction::opcode, target_to_nds32(), and nds32_instruction::text.
COMMAND_HANDLER | ( | handle_nds32_dssim_command | ) |
Definition at line 32 of file nds32_cmd.c.
References CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), ERROR_FAIL, ERROR_OK, get_current_target(), is_nds32(), nds32::step_isr_enable, target_name(), and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_global_stop_command | ) |
Definition at line 390 of file nds32_cmd.c.
References CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), ERROR_FAIL, ERROR_OK, get_current_target(), nds32::global_stop, is_nds32(), LOG_INFO, target_name(), and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_icache_command | ) |
Definition at line 218 of file nds32_cmd.c.
References aice_cache_ctl(), AICE_CACHE_CTL_L1I_INVALALL, CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), nds32_cache::enable, ERROR_FAIL, ERROR_OK, get_current_target(), nds32_memory::icache, IR8, is_nds32(), nds32_cache::line_size, nds32::memory, nds32_get_mapped_reg(), nds32_set_mapped_reg(), target_name(), target_to_aice(), and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_keep_target_edm_ctl_command | ) |
Definition at line 522 of file nds32_cmd.c.
References CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), ERROR_FAIL, ERROR_OK, get_current_target(), is_nds32(), nds32::keep_target_edm_ctl, and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_login_edm_operation_command | ) |
Definition at line 471 of file nds32_cmd.c.
References CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, command_print(), ERROR_FAIL, ERROR_OK, get_current_target(), is_nds32(), NDS32_EDM_OPERATION_MAX_NUM, nds32_edm_ops, nds32_edm_ops_num, nds32_edm_operation::reg_no, target_to_nds32(), and nds32_edm_operation::value.
COMMAND_HANDLER | ( | handle_nds32_login_edm_passcode_command | ) |
Definition at line 456 of file nds32_cmd.c.
References CMD, CMD_ARGV, CMD_CTX, command_print(), nds32::edm_passcode, ERROR_FAIL, ERROR_OK, get_current_target(), is_nds32(), and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_memory_access_command | ) |
Definition at line 55 of file nds32_cmd.c.
References nds32_memory::access_channel, aice_memory_access(), CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), ERROR_FAIL, ERROR_OK, get_current_target(), is_nds32(), LOG_DEBUG, nds32::memory, NDS_MEMORY_ACC_BUS, NDS_MEMORY_ACC_CPU, nds_memory_access_name, target_name(), target_to_aice(), and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_memory_mode_command | ) |
Definition at line 88 of file nds32_cmd.c.
References nds32_edm::access_control, aice_memory_mode(), CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), nds32_edm::direct_access_local_memory, nds32_memory::dlm_base, nds32::edm, ERROR_FAIL, ERROR_OK, get_current_target(), nds32_memory::ilm_base, is_nds32(), nds32::memory, nds32_memory::mode, NDS_MEMORY_SELECT_AUTO, NDS_MEMORY_SELECT_DLM, NDS_MEMORY_SELECT_ILM, NDS_MEMORY_SELECT_MEM, nds_memory_select_name, target_name(), target_to_aice(), and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_query_cpuid_command | ) |
Definition at line 653 of file nds32_cmd.c.
References CMD, CMD_CTX, command_print(), ERROR_FAIL, ERROR_OK, get_current_target(), is_nds32(), target_name(), and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_query_endian_command | ) |
Definition at line 632 of file nds32_cmd.c.
References CMD, CMD_CTX, command_print(), ERROR_FAIL, ERROR_OK, get_current_target(), IR0, is_nds32(), nds32_get_mapped_reg(), target_name(), and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_query_target_command | ) |
Definition at line 617 of file nds32_cmd.c.
References CMD, CMD_CTX, command_print(), ERROR_FAIL, ERROR_OK, get_current_target(), is_nds32(), and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_reset_halt_as_init_command | ) |
Definition at line 502 of file nds32_cmd.c.
References CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), ERROR_FAIL, ERROR_OK, get_current_target(), is_nds32(), nds32::reset_halt_as_examine, and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_soft_reset_halt_command | ) |
Definition at line 415 of file nds32_cmd.c.
References CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), ERROR_FAIL, ERROR_OK, get_current_target(), is_nds32(), LOG_INFO, nds32::soft_reset_halt, target_name(), and target_to_nds32().
COMMAND_HANDLER | ( | handle_nds32_virtual_hosting_command | ) |
Definition at line 365 of file nds32_cmd.c.
References CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), ERROR_FAIL, ERROR_OK, get_current_target(), is_nds32(), target_name(), target_to_nds32(), and nds32::virtual_hosting.
COMMAND_HANDLER | ( | handle_nds32_word_access_mem_command | ) |
Definition at line 597 of file nds32_cmd.c.
References CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), ERROR_FAIL, ERROR_OK, get_current_target(), is_nds32(), target_to_nds32(), and nds32::word_access_mem.
|
static |
Definition at line 779 of file nds32_cmd.c.
References jim_getopt_info::argc, jim_getopt_info::argv, count, current_command_context(), get_current_target(), command_context::interp, jim_getopt_info::interp, jim_getopt_setup(), jim_getopt_wide(), NULL, and target_read_buffer().
|
static |
Definition at line 668 of file nds32_cmd.c.
References jim_getopt_info::argc, jim_getopt_info::argv, count, current_command_context(), get_current_target(), command_context::interp, jim_getopt_info::interp, jim_getopt_setup(), jim_getopt_wide(), NULL, and target_write_buffer().
|
static |
Definition at line 725 of file nds32_cmd.c.
References AICE_COMMAND_MODE_NORMAL, AICE_COMMAND_MODE_PACK, aice_set_command_mode(), jim_getopt_info::argc, jim_getopt_info::argv, target::cmd_name, current_command_context(), ERROR_OK, get_current_target(), command_context::interp, jim_getopt_info::interp, jim_getopt_setup(), jim_getopt_wide(), NULL, target_to_aice(), and target_write_buffer().
|
static |
Definition at line 827 of file nds32_cmd.c.
References aice_read_debug_reg(), jim_getopt_info::argc, jim_getopt_info::argv, target::cmd_name, current_command_context(), ERROR_FAIL, ERROR_OK, get_current_target(), command_context::interp, jim_getopt_info::interp, jim_getopt_setup(), jim_getopt_string(), NDS_EDM_SR_EDM_DTR, NDS_EDM_SR_EDMSW, NULL, and target_to_aice().
|
static |
Definition at line 875 of file nds32_cmd.c.
References aice_write_debug_reg(), jim_getopt_info::argc, jim_getopt_info::argv, current_command_context(), ERROR_FAIL, ERROR_OK, get_current_target(), command_context::interp, jim_getopt_info::interp, jim_getopt_setup(), jim_getopt_string(), jim_getopt_wide(), NDS_EDM_SR_EDM_DTR, NULL, and target_to_aice().
const struct command_registration nds32_command_handlers[] |
Definition at line 875 of file nds32_cmd.c.
|
extern |
Definition at line 1 of file nds32.c.
Referenced by COMMAND_HANDLER(), and nds32_login().
|
extern |
Definition at line 20 of file nds32.c.
Referenced by COMMAND_HANDLER(), and nds32_login().
|
static |
Definition at line 875 of file nds32_cmd.c.
|
static |
Definition at line 875 of file nds32_cmd.c.
|
static |
Definition at line 20 of file nds32_cmd.c.
Referenced by COMMAND_HANDLER().
|
static |
Definition at line 25 of file nds32_cmd.c.
Referenced by COMMAND_HANDLER().