OpenOCD
|
Go to the source code of this file.
Functions | |
int | armv7a_cache_auto_flush_all_data (struct target *target) |
int | armv7a_cache_auto_flush_on_write (struct target *target, uint32_t virt, uint32_t size) |
int | armv7a_cache_flush_virt (struct target *target, uint32_t virt, uint32_t size) |
static int | armv7a_l1_d_cache_clean_inval_all (struct target *target) |
int | armv7a_l1_d_cache_clean_virt (struct target *target, uint32_t virt, unsigned int size) |
static int | armv7a_l1_d_cache_flush_level (struct arm_dpm *dpm, struct armv7a_cachesize *size, int cl) |
int | armv7a_l1_d_cache_flush_virt (struct target *target, uint32_t virt, unsigned int size) |
int | armv7a_l1_d_cache_inval_virt (struct target *target, uint32_t virt, uint32_t size) |
static int | armv7a_l1_d_cache_sanity_check (struct target *target) |
int | armv7a_l1_i_cache_inval_all (struct target *target) |
int | armv7a_l1_i_cache_inval_virt (struct target *target, uint32_t virt, uint32_t size) |
static int | armv7a_l1_i_cache_sanity_check (struct target *target) |
COMMAND_HANDLER (arm7a_cache_disable_auto_cmd) | |
COMMAND_HANDLER (arm7a_l1_cache_info_cmd) | |
COMMAND_HANDLER (arm7a_l1_d_cache_clean_virt_cmd) | |
COMMAND_HANDLER (arm7a_l1_d_cache_inval_virt_cmd) | |
COMMAND_HANDLER (arm7a_l1_i_cache_inval_virt_cmd) | |
COMMAND_HANDLER (armv7a_i_cache_clean_inval_all_cmd) | |
COMMAND_HANDLER (armv7a_l1_d_cache_clean_inval_all_cmd) | |
Variables | |
const struct command_registration | arm7a_cache_command_handlers [] |
static const struct command_registration | arm7a_cache_group_handlers [] |
static const struct command_registration | arm7a_l1_d_cache_commands [] |
static const struct command_registration | arm7a_l1_di_cache_group_handlers [] |
static const struct command_registration | arm7a_l1_i_cache_commands [] |
int armv7a_cache_auto_flush_all_data | ( | struct target * | target | ) |
Definition at line 121 of file armv7a_cache.c.
References arm7a_l2x_flush_all_data(), armv7a_mmu_common::armv7a_cache, armv7a_l1_d_cache_clean_inval_all(), armv7a_common::armv7a_mmu, armv7a_cache_common::auto_cache_enabled, ERROR_FAIL, ERROR_OK, foreach_smp_target, target::smp, target::smp_targets, target::state, target_list::target, TARGET_HALTED, and target_to_armv7a().
Referenced by armv7a_identify_cache().
int armv7a_cache_auto_flush_on_write | ( | struct target * | target, |
uint32_t | virt, | ||
uint32_t | size | ||
) |
Definition at line 404 of file armv7a_cache.c.
References armv7a_mmu_common::armv7a_cache, armv7a_cache_flush_virt(), armv7a_common::armv7a_mmu, armv7a_cache_common::auto_cache_enabled, ERROR_OK, size, and target_to_armv7a().
Referenced by cortex_a_write_memory().
int armv7a_cache_flush_virt | ( | struct target * | target, |
uint32_t | virt, | ||
uint32_t | size | ||
) |
Definition at line 385 of file armv7a_cache.c.
References armv7a_l1_d_cache_flush_virt(), armv7a_l2x_cache_flush_virt(), ERROR_OK, and size.
Referenced by armv7a_cache_auto_flush_on_write(), cortex_a_set_breakpoint(), and cortex_a_unset_breakpoint().
|
static |
Definition at line 87 of file armv7a_cache.c.
References armv7a_cache_common::arch, armv7a_common::arm, armv7a_mmu_common::armv7a_cache, armv7a_l1_d_cache_flush_level(), armv7a_l1_d_cache_sanity_check(), armv7a_common::armv7a_mmu, CACHE_LEVEL_HAS_D_CACHE, armv7a_arch_cache::ctype, armv7a_arch_cache::d_u_size, arm::dpm, ERROR_OK, arm_dpm::finish, armv7a_cache_common::loc, LOG_ERROR, arm_dpm::prepare, and target_to_armv7a().
Referenced by armv7a_cache_auto_flush_all_data(), and COMMAND_HANDLER().
int armv7a_l1_d_cache_clean_virt | ( | struct target * | target, |
uint32_t | virt, | ||
unsigned int | size | ||
) |
Definition at line 211 of file armv7a_cache.c.
References armv7a_common::arm, ARMV4_5_MCR, armv7a_mmu_common::armv7a_cache, armv7a_l1_d_cache_sanity_check(), armv7a_common::armv7a_mmu, armv7a_cache_common::dminline, arm::dpm, ERROR_OK, arm_dpm::finish, arm_dpm::instr_write_data_r0, keep_alive(), LOG_ERROR, arm_dpm::prepare, size, and target_to_armv7a().
Referenced by COMMAND_HANDLER().
|
static |
Definition at line 56 of file armv7a_cache.c.
References ARMV4_5_MCR, armv7a_common::dpm, ERROR_OK, arm_dpm::instr_write_data_r0, keep_alive(), LOG_DEBUG, and size.
Referenced by armv7a_l1_d_cache_clean_inval_all().
int armv7a_l1_d_cache_flush_virt | ( | struct target * | target, |
uint32_t | virt, | ||
unsigned int | size | ||
) |
Definition at line 255 of file armv7a_cache.c.
References armv7a_common::arm, ARMV4_5_MCR, armv7a_mmu_common::armv7a_cache, armv7a_l1_d_cache_sanity_check(), armv7a_common::armv7a_mmu, armv7a_cache_common::dminline, arm::dpm, ERROR_OK, arm_dpm::finish, arm_dpm::instr_write_data_r0, keep_alive(), LOG_ERROR, arm_dpm::prepare, size, and target_to_armv7a().
Referenced by armv7a_cache_flush_virt().
int armv7a_l1_d_cache_inval_virt | ( | struct target * | target, |
uint32_t | virt, | ||
uint32_t | size | ||
) |
Definition at line 147 of file armv7a_cache.c.
References armv7a_common::arm, ARMV4_5_MCR, armv7a_mmu_common::armv7a_cache, armv7a_l1_d_cache_sanity_check(), armv7a_common::armv7a_mmu, armv7a_cache_common::dminline, arm::dpm, ERROR_OK, arm_dpm::finish, arm_dpm::instr_write_data_r0, keep_alive(), LOG_ERROR, arm_dpm::prepare, size, and target_to_armv7a().
Referenced by COMMAND_HANDLER(), cortex_a_set_breakpoint(), and cortex_a_unset_breakpoint().
|
static |
Definition at line 20 of file armv7a_cache.c.
References armv7a_mmu_common::armv7a_cache, armv7a_common::armv7a_mmu, armv7a_cache_common::d_u_cache_enabled, ERROR_OK, ERROR_TARGET_INVALID, ERROR_TARGET_NOT_HALTED, LOG_DEBUG, LOG_ERROR, target::state, TARGET_HALTED, and target_to_armv7a().
Referenced by armv7a_l1_d_cache_clean_inval_all(), armv7a_l1_d_cache_clean_virt(), armv7a_l1_d_cache_flush_virt(), and armv7a_l1_d_cache_inval_virt().
int armv7a_l1_i_cache_inval_all | ( | struct target * | target | ) |
Definition at line 299 of file armv7a_cache.c.
References armv7a_common::arm, ARMV4_5_MCR, armv7a_l1_i_cache_sanity_check(), arm::dpm, ERROR_OK, arm_dpm::finish, arm_dpm::instr_write_data_r0, LOG_ERROR, arm_dpm::prepare, target::smp, and target_to_armv7a().
Referenced by COMMAND_HANDLER().
int armv7a_l1_i_cache_inval_virt | ( | struct target * | target, |
uint32_t | virt, | ||
uint32_t | size | ||
) |
Definition at line 336 of file armv7a_cache.c.
References armv7a_common::arm, ARMV4_5_MCR, armv7a_mmu_common::armv7a_cache, armv7a_l1_i_cache_sanity_check(), armv7a_common::armv7a_mmu, arm::dpm, ERROR_OK, arm_dpm::finish, armv7a_cache_common::iminline, arm_dpm::instr_write_data_r0, keep_alive(), LOG_ERROR, arm_dpm::prepare, size, and target_to_armv7a().
Referenced by COMMAND_HANDLER(), cortex_a_set_breakpoint(), and cortex_a_unset_breakpoint().
|
static |
Definition at line 38 of file armv7a_cache.c.
References armv7a_mmu_common::armv7a_cache, armv7a_common::armv7a_mmu, ERROR_OK, ERROR_TARGET_INVALID, ERROR_TARGET_NOT_HALTED, armv7a_cache_common::i_cache_enabled, LOG_DEBUG, LOG_ERROR, target::state, TARGET_HALTED, and target_to_armv7a().
Referenced by armv7a_l1_i_cache_inval_all(), and armv7a_l1_i_cache_inval_virt().
COMMAND_HANDLER | ( | arm7a_cache_disable_auto_cmd | ) |
Definition at line 496 of file armv7a_cache.c.
COMMAND_HANDLER | ( | arm7a_l1_cache_info_cmd | ) |
Definition at line 415 of file armv7a_cache.c.
References armv7a_mmu_common::armv7a_cache, armv7a_handle_cache_info_command(), armv7a_common::armv7a_mmu, CMD, CMD_CTX, get_current_target(), and target_to_armv7a().
COMMAND_HANDLER | ( | arm7a_l1_d_cache_clean_virt_cmd | ) |
Definition at line 451 of file armv7a_cache.c.
References armv7a_l1_d_cache_clean_virt(), CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, get_current_target(), and size.
COMMAND_HANDLER | ( | arm7a_l1_d_cache_inval_virt_cmd | ) |
Definition at line 433 of file armv7a_cache.c.
References armv7a_l1_d_cache_inval_virt(), CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, get_current_target(), and size.
COMMAND_HANDLER | ( | arm7a_l1_i_cache_inval_virt_cmd | ) |
Definition at line 478 of file armv7a_cache.c.
References armv7a_l1_i_cache_inval_virt(), CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, get_current_target(), and size.
COMMAND_HANDLER | ( | armv7a_i_cache_clean_inval_all_cmd | ) |
Definition at line 469 of file armv7a_cache.c.
References armv7a_l1_i_cache_inval_all(), CMD_CTX, and get_current_target().
COMMAND_HANDLER | ( | armv7a_l1_d_cache_clean_inval_all_cmd | ) |
Definition at line 424 of file armv7a_cache.c.
References armv7a_l1_d_cache_clean_inval_all(), CMD_CTX, and get_current_target().
const struct command_registration arm7a_cache_command_handlers[] |
Definition at line 496 of file armv7a_cache.c.
|
static |
Definition at line 496 of file armv7a_cache.c.
|
static |
Definition at line 496 of file armv7a_cache.c.
|
static |
Definition at line 496 of file armv7a_cache.c.
|
static |
Definition at line 496 of file armv7a_cache.c.