OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | armv7m_arch_cache |
struct | armv7m_cache_common |
struct | armv7m_cache_size |
Functions | |
int | armv7m_d_cache_flush (struct target *target, uint32_t address, unsigned int length) |
int | armv7m_handle_cache_info_command (struct command_invocation *cmd, struct target *target) |
int | armv7m_i_cache_inval (struct target *target, uint32_t address, unsigned int length) |
int | armv7m_identify_cache (struct target *target) |
int armv7m_d_cache_flush | ( | struct target * | target, |
uint32_t | address, | ||
unsigned int | length | ||
) |
Definition at line 194 of file armv7m_cache.c.
References address, ALIGN_DOWN, armv7m_common::armv7m_cache, armv7m_cache_common::d_min_line_len, adiv5_ap::dap, dap_run(), DCCIMVAC, armv7m_common::debug_ap, ERROR_OK, armv7m_cache_common::has_d_u_cache, armv7m_cache_common::info_valid, keep_alive(), length, mem_ap_write_u32(), and target_to_armv7m().
Referenced by cortex_m_set_breakpoint(), and cortex_m_unset_breakpoint().
int armv7m_handle_cache_info_command | ( | struct command_invocation * | cmd, |
struct target * | target | ||
) |
Definition at line 242 of file armv7m_cache.c.
References armv7m_cache_common::arch, armv7m_common::armv7m_cache, armv7m_cache_size::associativity, armv7m_cache_size::cache_size, CLIDR_CTYPE_D_CACHE, CLIDR_CTYPE_I_CACHE, CLIDR_CTYPE_UNIFIED_CACHE, cmd, command_print(), armv7m_arch_cache::ctype, armv7m_arch_cache::d_u_size, ERROR_FAIL, ERROR_OK, armv7m_arch_cache::i_size, armv7m_cache_common::info_valid, armv7m_cache_size::line_len, armv7m_cache_common::loc, armv7m_cache_size::num_sets, target_to_armv7m(), and target_was_examined().
Referenced by COMMAND_HANDLER().
int armv7m_i_cache_inval | ( | struct target * | target, |
uint32_t | address, | ||
unsigned int | length | ||
) |
Definition at line 218 of file armv7m_cache.c.
References address, ALIGN_DOWN, armv7m_common::armv7m_cache, adiv5_ap::dap, dap_run(), armv7m_common::debug_ap, ERROR_OK, armv7m_cache_common::has_i_cache, armv7m_cache_common::i_min_line_len, ICIMVAU, armv7m_cache_common::info_valid, keep_alive(), length, mem_ap_write_u32(), and target_to_armv7m().
Referenced by cortex_m_set_breakpoint(), and cortex_m_unset_breakpoint().
int armv7m_identify_cache | ( | struct target * | target | ) |
Definition at line 71 of file armv7m_cache.c.
References armv7m_cache_common::arch, armv7m_common::armv7m_cache, armv7m_cache_size::associativity, armv7m_cache_size::cache_size, CLIDR, CLIDR_CTYPE_D_CACHE, CLIDR_CTYPE_I_CACHE, CLIDR_CTYPE_MASK, CLIDR_CTYPE_UNIFIED_CACHE, CLIDR_LOC_MASK, CSSELR, CTR, CTR_DMINLINE_MASK, CTR_FORMAT_MASK, CTR_FORMAT_PROVIDED, CTR_IMINLINE_MASK, armv7m_arch_cache::ctype, armv7m_cache_common::d_min_line_len, armv7m_arch_cache::d_u_size, armv7m_common::debug_ap, decode_ccsidr(), ERROR_FAIL, ERROR_OK, FIELD_GET, get_d_u_cache_info(), get_i_cache_info(), armv7m_cache_common::has_d_u_cache, armv7m_cache_common::has_i_cache, armv7m_cache_common::i_min_line_len, armv7m_arch_cache::i_size, armv7m_cache_size::index, armv7m_cache_size::index_shift, armv7m_cache_common::info_valid, armv7m_cache_size::line_len, armv7m_cache_common::loc, LOG_ERROR, LOG_TARGET_DEBUG, mem_ap_read_atomic_u32(), mem_ap_read_u32(), mem_ap_write_atomic_u32(), target_to_armv7m(), armv7m_cache_size::way, and armv7m_cache_size::way_shift.
Referenced by cortex_m_examine().