Go to the source code of this file.
◆ add_reg_type_flags
Enumerator |
---|
CFG_ADD_REG_TYPE_FLAGS_NAME | |
CFG_ADD_REG_TYPE_FLAGS_FLAG | |
Definition at line 31 of file arc_cmd.c.
◆ add_reg_type_struct
Enumerator |
---|
CFG_ADD_REG_TYPE_STRUCT_NAME | |
CFG_ADD_REG_TYPE_STRUCT_BITFIELD | |
Definition at line 193 of file arc_cmd.c.
◆ add_reg_types
Enumerator |
---|
CFG_ADD_REG_TYPE_FLAG | |
CFG_ADD_REG_TYPE_STRUCT | |
Definition at line 26 of file arc_cmd.c.
◆ opts_add_reg
Enumerator |
---|
CFG_ADD_REG_NAME | |
CFG_ADD_REG_ARCH_NUM | |
CFG_ADD_REG_IS_CORE | |
CFG_ADD_REG_IS_BCR | |
CFG_ADD_REG_GDB_FEATURE | |
CFG_ADD_REG_TYPE | |
CFG_ADD_REG_GENERAL | |
Definition at line 506 of file arc_cmd.c.
◆ COMMAND_HANDLER() [1/12]
COMMAND_HANDLER |
( |
arc_handle_actionpoints_num |
| ) |
|
◆ COMMAND_HANDLER() [2/12]
COMMAND_HANDLER |
( |
arc_handle_add_reg |
| ) |
|
◆ COMMAND_HANDLER() [3/12]
COMMAND_HANDLER |
( |
arc_handle_add_reg_type_flags |
| ) |
|
Definition at line 129 of file arc_cmd.c.
References arc_reg_data_type_add(), CALL_COMMAND_HANDLER, CMD, CMD_ARGC, CMD_CTX, command_print(), ERROR_COMMAND_ARGUMENT_INVALID, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, reg_data_type_flags::fields, get_current_target(), LOG_DEBUG, LOG_ERROR, REG_TYPE_ARCH_DEFINED, REG_TYPE_CLASS_FLAGS, reg_data_type_flags::size, and type.
◆ COMMAND_HANDLER() [4/12]
COMMAND_HANDLER |
( |
arc_handle_add_reg_type_struct |
| ) |
|
Definition at line 442 of file arc_cmd.c.
References arc_reg_data_type_add(), CALL_COMMAND_HANDLER, CMD, CMD_ARGC, CMD_CTX, command_print(), ERROR_COMMAND_ARGUMENT_INVALID, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, reg_data_type_struct::fields, get_current_target(), LOG_DEBUG, LOG_ERROR, REG_TYPE_ARCH_DEFINED, REG_TYPE_CLASS_STRUCT, reg_data_type_struct::size, and type.
◆ COMMAND_HANDLER() [5/12]
COMMAND_HANDLER |
( |
arc_handle_get_aux_reg |
| ) |
|
Definition at line 231 of file arc_cmd.c.
References arc_jtag_read_aux_reg_one(), CHECK_RETVAL, CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, command_print(), ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, get_current_target(), arc_common::jtag_info, and target_to_arc().
◆ COMMAND_HANDLER() [6/12]
COMMAND_HANDLER |
( |
arc_handle_get_core_reg |
| ) |
|
Definition at line 257 of file arc_cmd.c.
References arc_jtag_read_core_reg_one(), ARC_R61, ARC_R62, CHECK_RETVAL, CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, command_print(), CORE_REG_MAX_NUMBER, ERROR_COMMAND_ARGUMENT_INVALID, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, get_current_target(), arc_common::jtag_info, and target_to_arc().
◆ COMMAND_HANDLER() [7/12]
COMMAND_HANDLER |
( |
arc_handle_get_reg_field |
| ) |
|
Definition at line 695 of file arc_cmd.c.
References arc_reg_get_field(), CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), 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_FAIL, ERROR_OK, and get_current_target().
◆ COMMAND_HANDLER() [8/12]
COMMAND_HANDLER |
( |
arc_handle_set_aux_reg |
| ) |
|
Definition at line 204 of file arc_cmd.c.
References arc_jtag_write_aux_reg_one(), CHECK_RETVAL, CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, command_print(), ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, get_current_target(), arc_common::jtag_info, and target_to_arc().
◆ COMMAND_HANDLER() [9/12]
COMMAND_HANDLER |
( |
arc_handle_set_core_reg |
| ) |
|
◆ COMMAND_HANDLER() [10/12]
COMMAND_HANDLER |
( |
arc_l1_cache_disable_auto_cmd |
| ) |
|
◆ COMMAND_HANDLER() [11/12]
COMMAND_HANDLER |
( |
arc_l2_cache_disable_auto_cmd |
| ) |
|
◆ COMMAND_HANDLER() [12/12]
COMMAND_HANDLER |
( |
arc_set_reg_exists |
| ) |
|
Definition at line 665 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, ERROR_FAIL, ERROR_OK, reg::exist, get_current_target(), and target::reg_cache.
◆ COMMAND_HELPER() [1/3]
static COMMAND_HELPER |
( |
arc_handle_add_reg_do |
, |
|
|
struct arc_reg_desc * |
reg |
|
) |
| |
|
static |
Definition at line 534 of file arc_cmd.c.
References arc_reg_add(), 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, CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, command_print(), ERROR_ARC_REGTYPE_NOT_FOUND, ERROR_COMMAND_ARGUMENT_INVALID, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, get_current_target(), LOG_ERROR, reg::name, NULL, nvp_name2value(), nvp_unknown_command_print(), opts_nvp_add_reg, target, validate_register(), and nvp::value.
◆ COMMAND_HELPER() [2/3]
static COMMAND_HELPER |
( |
arc_handle_add_reg_type_flags_ops |
, |
|
|
struct arc_reg_data_type * |
type |
|
) |
| |
|
static |
Definition at line 58 of file arc_cmd.c.
References arc_reg_bitfield::bitfield, reg_data_type_flags_field::bitfield, CFG_ADD_REG_TYPE_FLAGS_FLAG, CFG_ADD_REG_TYPE_FLAGS_NAME, CMD, CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, command_print(), reg_data_type_bitfield::end, ERROR_COMMAND_ARGUMENT_INVALID, ERROR_OK, reg_data_type_flags::fields, arc_reg_bitfield::name, name, reg_data_type_flags_field::name, reg_data_type_flags_field::next, NULL, nvp_add_reg_type_flags_opts, nvp_name2value(), nvp_unknown_command_print(), REG_TYPE_MAX_NAME_LENGTH, reg_data_type_bitfield::start, type, and nvp::value.
◆ COMMAND_HELPER() [3/3]
static COMMAND_HELPER |
( |
arc_handle_add_reg_type_struct_opts |
, |
|
|
struct arc_reg_data_type * |
type |
|
) |
| |
|
static |
Definition at line 367 of file arc_cmd.c.
References arc_reg_bitfield::bitfield, reg_data_type_struct_field::bitfield, CFG_ADD_REG_TYPE_STRUCT_BITFIELD, CFG_ADD_REG_TYPE_STRUCT_NAME, CMD, CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, command_print(), reg_data_type_bitfield::end, ERROR_COMMAND_ARGUMENT_INVALID, ERROR_OK, reg_data_type_struct::fields, arc_reg_bitfield::name, name, reg_data_type_struct_field::name, reg_data_type_struct_field::next, NULL, nvp_add_reg_type_struct_opts, nvp_name2value(), nvp_unknown_command_print(), REG_TYPE_INT, REG_TYPE_MAX_NAME_LENGTH, reg_data_type_bitfield::start, type, reg_data_type_bitfield::type, reg_data_type_struct_field::use_bitfields, and nvp::value.
◆ free_reg_desc()
◆ validate_register()
static const char* validate_register |
( |
const struct arc_reg_desc *const |
reg, |
|
|
bool |
arch_num_set |
|
) |
| |
|
static |
◆ arc_cache_group_handlers
Initial value:= {
{
.name = "auto",
.handler = arc_l1_cache_disable_auto_cmd,
.help = "Disable or enable L1",
.usage = "(1|0)",
},
{
.name = "l2",
.help = "L2 cache command group",
.usage = "",
},
}
static const struct command_registration arc_l2_cache_group_handlers[]
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition at line 762 of file arc_cmd.c.
◆ arc_core_command_handlers
◆ arc_jtag_command_group
◆ arc_l2_cache_group_handlers
Initial value:= {
{
.name = "auto",
.handler = arc_l2_cache_disable_auto_cmd,
.usage = "(1|0)",
.help = "Disable or enable L2",
},
}
Definition at line 762 of file arc_cmd.c.
◆ arc_monitor_command_handlers
Initial value:= {
{
.name = "arc",
.help = "ARC monitor command group",
.usage = "",
},
}
static const struct command_registration arc_core_command_handlers[]
Definition at line 762 of file arc_cmd.c.
◆ nvp_add_reg_type_flags_opts
const struct nvp nvp_add_reg_type_flags_opts[] |
|
static |
Initial value:= {
{ .name =
NULL, .value = -1 }
}
@ CFG_ADD_REG_TYPE_FLAGS_FLAG
@ CFG_ADD_REG_TYPE_FLAGS_NAME
Definition at line 1 of file arc_cmd.c.
Referenced by COMMAND_HELPER().
◆ nvp_add_reg_type_struct_opts
const struct nvp nvp_add_reg_type_struct_opts[] |
|
static |
Initial value:= {
{ .name =
NULL, .value = -1 }
}
@ CFG_ADD_REG_TYPE_STRUCT_BITFIELD
@ CFG_ADD_REG_TYPE_STRUCT_NAME
Definition at line 129 of file arc_cmd.c.
Referenced by COMMAND_HELPER().
◆ opts_nvp_add_reg
const struct nvp opts_nvp_add_reg[] |
|
static |