OpenOCD
|
Go to the source code of this file.
Functions | |
static int | arc_cmd_jim_get_uint32 (struct jim_getopt_info *goi, uint32_t *value) |
COMMAND_HANDLER (arc_l1_cache_disable_auto_cmd) | |
COMMAND_HANDLER (arc_l2_cache_disable_auto_cmd) | |
COMMAND_HANDLER (arc_set_reg_exists) | |
void | free_reg_desc (struct arc_reg_desc *r) |
static int | jim_arc_add_reg (Jim_Interp *interp, int argc, Jim_Obj *const *argv) |
static int | jim_arc_add_reg_type_flags (Jim_Interp *interp, int argc, Jim_Obj *const *argv) |
static int | jim_arc_add_reg_type_struct (Jim_Interp *interp, int argc, Jim_Obj *const *argv) |
static int | jim_arc_get_aux_reg (Jim_Interp *interp, int argc, Jim_Obj *const *argv) |
static int | jim_arc_get_core_reg (Jim_Interp *interp, int argc, Jim_Obj *const *argv) |
static int | jim_arc_get_reg_field (Jim_Interp *interp, int argc, Jim_Obj *const *argv) |
static int | jim_arc_read_reg_name_field (struct jim_getopt_info *goi, const char **name, int *name_len) |
static int | jim_arc_read_reg_type_field (struct jim_getopt_info *goi, const char **field_name, int *field_name_len, struct arc_reg_bitfield *bitfields, int cur_field, int type) |
static int | jim_arc_set_aux_reg (Jim_Interp *interp, int argc, Jim_Obj *const *argv) |
static int | jim_arc_set_core_reg (Jim_Interp *interp, int argc, Jim_Obj *const *argv) |
static int | jim_handle_actionpoints_num (Jim_Interp *interp, int argc, Jim_Obj *const *argv) |
static const char * | validate_register (const struct arc_reg_desc *const reg, bool arch_num_set) |
Variables | |
static const struct command_registration | arc_cache_group_handlers [] |
static const struct command_registration | arc_core_command_handlers [] |
static const struct command_registration | arc_jtag_command_group [] |
static const struct command_registration | arc_l2_cache_group_handlers [] |
const struct command_registration | arc_monitor_command_handlers [] |
static struct jim_nvp | nvp_add_reg_type_flags_opts [] |
static struct jim_nvp | nvp_add_reg_type_struct_opts [] |
static struct jim_nvp | opts_nvp_add_reg [] |
enum add_reg_type_flags |
enum add_reg_type_struct |
enum add_reg_types |
enum opts_add_reg |
|
static |
Definition at line 25 of file arc_cmd.c.
References JIM_CHECK_RETVAL, and jim_getopt_wide().
Referenced by jim_arc_get_aux_reg(), jim_arc_get_core_reg(), and jim_arc_set_aux_reg().
COMMAND_HANDLER | ( | arc_l1_cache_disable_auto_cmd | ) |
Definition at line 912 of file arc_cmd.c.
References CALL_COMMAND_HANDLER, CMD_CTX, get_current_target(), arc_common::has_dcache, arc_common::has_icache, arc_common::has_l2cache, and target_to_arc().
COMMAND_HANDLER | ( | arc_l2_cache_disable_auto_cmd | ) |
Definition at line 925 of file arc_cmd.c.
References CALL_COMMAND_HANDLER, CMD_CTX, get_current_target(), arc_common::has_l2cache, and target_to_arc().
COMMAND_HANDLER | ( | arc_set_reg_exists | ) |
Definition at line 816 of file arc_cmd.c.
References arc_reg_get_by_name(), CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), ERROR_COMMAND_ARGUMENT_INVALID, ERROR_COMMAND_SYNTAX_ERROR, reg::exist, get_current_target(), and target::reg_cache.
void free_reg_desc | ( | struct arc_reg_desc * | r | ) |
Definition at line 656 of file arc_cmd.c.
References arc_reg_desc::gdb_xml_feature, and arc_reg_desc::name.
Referenced by arc_deinit_target(), and jim_arc_add_reg().
|
static |
Definition at line 663 of file arc_cmd.c.
References arc_reg_add(), jim_getopt_info::argc, jim_getopt_info::argv, CFG_ADD_REG_ARCH_NUM, CFG_ADD_REG_GDB_FEATURE, CFG_ADD_REG_GENERAL, CFG_ADD_REG_IS_BCR, CFG_ADD_REG_IS_CORE, CFG_ADD_REG_NAME, CFG_ADD_REG_TYPE, current_command_context(), ERROR_ARC_REGTYPE_NOT_FOUND, ERROR_OK, feature, free_reg_desc(), get_current_target(), jim_getopt_info::interp, jim_arc_read_reg_name_field(), JIM_CHECK_RETVAL, jim_getopt_nvp(), jim_getopt_nvp_unknown(), jim_getopt_setup(), jim_getopt_wide(), LOG_DEBUG, reg::name, NULL, opts_nvp_add_reg, strndup(), target, validate_register(), and jim_nvp::value.
|
static |
Definition at line 125 of file arc_cmd.c.
References arc_reg_data_type_add(), jim_getopt_info::argc, jim_getopt_info::argv, arc_reg_bitfield::bitfield, reg_data_type_flags_field::bitfield, CFG_ADD_REG_TYPE_FLAG, CFG_ADD_REG_TYPE_FLAGS_FLAG, CFG_ADD_REG_TYPE_FLAGS_NAME, current_command_context(), reg_data_type_flags::fields, get_current_target(), jim_getopt_info::interp, jim_arc_read_reg_name_field(), jim_arc_read_reg_type_field(), JIM_CHECK_RETVAL, jim_getopt_nvp(), jim_getopt_nvp_unknown(), jim_getopt_setup(), LOG_DEBUG, arc_reg_bitfield::name, name, reg_data_type_flags_field::name, reg_data_type_flags_field::next, NULL, nvp_add_reg_type_flags_opts, REG_TYPE_ARCH_DEFINED, REG_TYPE_CLASS_FLAGS, REG_TYPE_MAX_NAME_LENGTH, reg_data_type_flags::size, target, type, and jim_nvp::value.
|
static |
Definition at line 491 of file arc_cmd.c.
References arc_reg_data_type_add(), jim_getopt_info::argc, jim_getopt_info::argv, arc_reg_bitfield::bitfield, reg_data_type_struct_field::bitfield, CFG_ADD_REG_TYPE_STRUCT, CFG_ADD_REG_TYPE_STRUCT_BITFIELD, CFG_ADD_REG_TYPE_STRUCT_NAME, current_command_context(), reg_data_type_struct::fields, get_current_target(), jim_getopt_info::interp, jim_arc_read_reg_name_field(), jim_arc_read_reg_type_field(), JIM_CHECK_RETVAL, jim_getopt_nvp(), jim_getopt_nvp_unknown(), jim_getopt_setup(), LOG_DEBUG, arc_reg_bitfield::name, name, reg_data_type_struct_field::name, reg_data_type_struct_field::next, NULL, nvp_add_reg_type_struct_opts, REG_TYPE_ARCH_DEFINED, REG_TYPE_CLASS_STRUCT, REG_TYPE_MAX_NAME_LENGTH, reg_data_type_struct::size, target, type, reg_data_type_struct_field::use_bitfields, and jim_nvp::value.
|
static |
Definition at line 321 of file arc_cmd.c.
References arc_cmd_jim_get_uint32(), arc_jtag_read_aux_reg_one(), jim_getopt_info::argc, jim_getopt_info::argv, CHECK_RETVAL, current_command_context(), ERROR_OK, get_current_target(), jim_getopt_info::interp, JIM_CHECK_RETVAL, jim_getopt_setup(), arc_common::jtag_info, NULL, target, and target_to_arc().
|
static |
Definition at line 358 of file arc_cmd.c.
References arc_cmd_jim_get_uint32(), arc_jtag_read_core_reg_one(), ARC_R61, ARC_R62, jim_getopt_info::argc, jim_getopt_info::argv, CHECK_RETVAL, CORE_REG_MAX_NUMBER, current_command_context(), ERROR_OK, get_current_target(), jim_getopt_info::interp, JIM_CHECK_RETVAL, jim_getopt_setup(), arc_common::jtag_info, NULL, target, and target_to_arc().
|
static |
Definition at line 846 of file arc_cmd.c.
References arc_reg_get_field(), jim_getopt_info::argc, jim_getopt_info::argv, current_command_context(), ERROR_ARC_FIELD_IS_NOT_BITFIELD, ERROR_ARC_REGISTER_FIELD_NOT_FOUND, ERROR_ARC_REGISTER_IS_NOT_STRUCT, ERROR_ARC_REGISTER_NOT_FOUND, ERROR_COMMAND_ARGUMENT_INVALID, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, get_current_target(), command_context::interp, jim_getopt_info::interp, JIM_CHECK_RETVAL, jim_getopt_setup(), jim_getopt_string(), LOG_DEBUG, and NULL.
|
static |
Definition at line 67 of file arc_cmd.c.
References jim_getopt_info::argc, jim_getopt_info::argv, jim_getopt_info::interp, jim_getopt_string(), and name.
Referenced by jim_arc_add_reg(), jim_arc_add_reg_type_flags(), and jim_arc_add_reg_type_struct().
|
static |
Definition at line 81 of file arc_cmd.c.
References jim_getopt_info::argc, jim_getopt_info::argv, arc_reg_bitfield::bitfield, CFG_ADD_REG_TYPE_FLAG, CFG_ADD_REG_TYPE_STRUCT, reg_data_type_bitfield::end, jim_getopt_info::interp, jim_getopt_string(), jim_getopt_wide(), REG_TYPE_INT, reg_data_type_bitfield::start, type, and reg_data_type_bitfield::type.
Referenced by jim_arc_add_reg_type_flags(), and jim_arc_add_reg_type_struct().
|
static |
Definition at line 281 of file arc_cmd.c.
References arc_cmd_jim_get_uint32(), arc_jtag_write_aux_reg_one(), jim_getopt_info::argc, jim_getopt_info::argv, CHECK_RETVAL, current_command_context(), ERROR_OK, get_current_target(), jim_getopt_info::interp, JIM_CHECK_RETVAL, jim_getopt_setup(), arc_common::jtag_info, NULL, target, and target_to_arc().
|
static |
|
static |
|
static |
Definition at line 51 of file arc_cmd.c.
References reg::name, and NULL.
Referenced by jim_arc_add_reg().
|
static |
|
static |
|
static |
|
static |
const struct command_registration arc_monitor_command_handlers[] |
|
static |
Definition at line 25 of file arc_cmd.c.
Referenced by jim_arc_add_reg_type_flags().
|
static |
Definition at line 125 of file arc_cmd.c.
Referenced by jim_arc_add_reg_type_struct().
|
static |
Definition at line 491 of file arc_cmd.c.
Referenced by jim_arc_add_reg().