OpenOCD
|
Go to the source code of this file.
Functions | |
int | armv7a_arch_state (struct target *target) |
int | armv7a_handle_cache_info_command (struct command_invocation *cmd, struct armv7a_cache_common *armv7a_cache) |
int | armv7a_identify_cache (struct target *target) |
int | armv7a_init_arch_info (struct target *target, struct armv7a_common *armv7a) |
static int | armv7a_l2x_cache_init (struct target *target, uint32_t base, uint32_t way) |
static int | armv7a_read_midr (struct target *target) |
static int | armv7a_read_mpidr (struct target *target) |
int | armv7a_read_ttbcr (struct target *target) |
static int | armv7a_setup_semihosting (struct target *target, int enable) |
static void | armv7a_show_fault_registers (struct target *target) |
COMMAND_HANDLER (handle_cache_l2x) | |
static struct armv7a_cachesize | decode_cache_reg (uint32_t cache_reg) |
static int | get_cache_info (struct arm_dpm *dpm, int cl, int ct, uint32_t *cache_reg) |
Variables | |
const struct command_registration | armv7a_command_handlers [] |
static const struct command_registration | l2_cache_commands [] |
static const struct command_registration | l2x_cache_command_handlers [] |
int armv7a_arch_state | ( | struct target * | target | ) |
Definition at line 532 of file armv7a.c.
References armv7a_common::arm, arm_arch_state(), ARM_MODE_ABT, ARMV7_COMMON_MAGIC, armv7a_mmu_common::armv7a_cache, armv7a_common::armv7a_mmu, armv7a_show_fault_registers(), armv7a_common::common_magic, arm::core_mode, armv7a_cache_common::d_u_cache_enabled, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, armv7a_cache_common::i_cache_enabled, armv7a_common::is_armv7r, LOG_ERROR, LOG_USER, armv7a_mmu_common::mmu_enabled, state, and target_to_armv7a().
int armv7a_handle_cache_info_command | ( | struct command_invocation * | cmd, |
struct armv7a_cache_common * | armv7a_cache | ||
) |
Definition at line 230 of file armv7a.c.
References armv7a_cache_common::arch, armv7a_cachesize::associativity, armv7a_l2x_cache::base, armv7a_cachesize::cachesize, cmd, command_print(), armv7a_arch_cache::ctype, armv7a_arch_cache::d_u_size, ERROR_OK, armv7a_arch_cache::i_size, armv7a_cache_common::info, armv7a_cachesize::linelen, armv7a_cache_common::loc, armv7a_cachesize::nsets, armv7a_cache_common::outer_cache, and armv7a_l2x_cache::way.
Referenced by COMMAND_HANDLER().
int armv7a_identify_cache | ( | struct target * | target | ) |
Definition at line 364 of file armv7a.c.
References armv7a_cache_common::arch, armv7a_common::arm, ARMV4_5_MRC, armv7a_mmu_common::armv7a_cache, armv7a_cache_auto_flush_all_data(), armv7a_common::armv7a_mmu, armv7a_read_mpidr(), armv7a_cachesize::associativity, CACHE_LEVEL_HAS_D_CACHE, CACHE_LEVEL_HAS_I_CACHE, CACHE_LEVEL_HAS_UNIFIED_CACHE, armv7a_cachesize::cachesize, armv7a_arch_cache::ctype, armv7a_arch_cache::d_u_size, decode_cache_reg(), armv7a_cache_common::dminline, arm::dpm, ERROR_FAIL, ERROR_OK, arm_dpm::finish, armv7a_cache_common::flush_all_data_cache, get_cache_info(), armv7a_arch_cache::i_size, armv7a_cache_common::iminline, armv7a_cachesize::index, armv7a_cachesize::index_shift, armv7a_cache_common::info, arm_dpm::instr_read_data_r0, arm_dpm::instr_write_data_r0, armv7a_cachesize::linelen, armv7a_cache_common::loc, LOG_DEBUG, arm_dpm::prepare, target_to_armv7a(), armv7a_cachesize::way, and armv7a_cachesize::way_shift.
Referenced by cortex_a_post_debug_entry().
int armv7a_init_arch_info | ( | struct target * | target, |
struct armv7a_common * | armv7a | ||
) |
Definition at line 515 of file armv7a.c.
References arm::arch_info, target::arch_info, armv7a_common::arm, ARM_COMMON_MAGIC, ARMV7_COMMON_MAGIC, armv7a_mmu_common::armv7a_cache, armv7a_common::armv7a_mmu, armv7a_setup_semihosting(), armv7a_cache_common::auto_cache_enabled, arm::common_magic, armv7a_common::common_magic, ERROR_OK, armv7a_cache_common::flush_all_data_cache, armv7a_cache_common::info, NULL, armv7a_cache_common::outer_cache, arm::setup_semihosting, target, and arm::target.
Referenced by cortex_a_init_arch_info().
|
static |
Definition at line 183 of file armv7a.c.
References armv7a_mmu_common::armv7a_cache, armv7a_common::armv7a_mmu, armv7a_l2x_cache::base, foreach_smp_target, LOG_ERROR, LOG_INFO, armv7a_cache_common::outer_cache, target::smp_targets, target_list::target, target_to_armv7a(), and armv7a_l2x_cache::way.
Referenced by COMMAND_HANDLER().
|
static |
Definition at line 82 of file armv7a.c.
References armv7a_common::arch, armv7a_common::arm, ARMV4_5_MRC, target::cmd_name, arm::dpm, ERROR_FAIL, ERROR_OK, arm_dpm::finish, armv7a_common::implementor, arm_dpm::instr_read_data_r0, LOG_DEBUG, armv7a_common::partnum, arm_dpm::prepare, armv7a_common::rev, target_to_armv7a(), and armv7a_common::variant.
Referenced by armv7a_read_ttbcr().
|
static |
Definition at line 281 of file armv7a.c.
References armv7a_common::arm, ARMV4_5_MRC, armv7a_common::cluster_id, armv7a_common::cpu_id, arm::dpm, ERROR_FAIL, ERROR_OK, arm_dpm::finish, arm_dpm::instr_read_data_r0, armv7a_common::level2_id, LOG_DEBUG, LOG_ERROR, LOG_INFO, MPIDR_MP_EXT, armv7a_common::multi_processor_system, armv7a_common::multi_threading_processor, arm_dpm::prepare, target_name(), and target_to_armv7a().
Referenced by armv7a_identify_cache().
int armv7a_read_ttbcr | ( | struct target * | target | ) |
Definition at line 118 of file armv7a.c.
References armv7a_common::arm, ARMV4_5_MRC, armv7a_common::armv7a_mmu, armv7a_read_midr(), armv7a_mmu_common::cached, arm::dpm, ERROR_OK, arm_dpm::finish, arm_dpm::instr_read_data_r0, LOG_DEBUG, armv7a_common::partnum, arm_dpm::prepare, target_to_armv7a(), armv7a_mmu_common::ttbcr, armv7a_mmu_common::ttbr, armv7a_mmu_common::ttbr_mask, and armv7a_mmu_common::ttbr_range.
Referenced by cortex_a_post_debug_entry().
|
static |
Definition at line 487 of file armv7a.c.
References CPUDBG_VCR, DBG_VCR_SVC_MASK, armv7a_common::debug_ap, armv7a_common::debug_base, LOG_ERROR, mem_ap_read_atomic_u32(), mem_ap_write_atomic_u32(), and target_to_armv7a().
Referenced by armv7a_init_arch_info().
|
static |
Definition at line 32 of file armv7a.c.
References armv7a_common::arm, ARMV4_5_MRC, arm::dpm, ERROR_OK, arm_dpm::finish, arm_dpm::instr_read_data_r0, LOG_USER, arm_dpm::prepare, and target_to_armv7a().
Referenced by armv7a_arch_state().
COMMAND_HANDLER | ( | handle_cache_l2x | ) |
Definition at line 212 of file armv7a.c.
References armv7a_l2x_cache_init(), CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, and get_current_target().
|
static |
Definition at line 324 of file armv7a.c.
References ARMV4_5_MCR, ARMV4_5_MRC, ERROR_OK, arm_dpm::instr_read_data_r0, and arm_dpm::instr_write_data_r0.
Referenced by armv7a_identify_cache().
|
static |
Definition at line 324 of file armv7a.c.
Referenced by armv7a_identify_cache().
const struct command_registration armv7a_command_handlers[] |
|
static |
|
static |