OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | arm920t_cache_line |
struct | arm920t_common |
struct | arm920t_tlb_entry |
Macros | |
#define | ARM920T_COMMON_MAGIC 0xa920a920U |
Functions | |
int | arm920t_arch_state (struct target *target) |
Logs summary of ARM920 state for a halted target. More... | |
int | arm920t_disable_mmu_caches (struct target *target, int mmu, int d_u_cache, int i_cache) |
int | arm920t_enable_mmu_caches (struct target *target, int mmu, int d_u_cache, int i_cache) |
int | arm920t_get_ttb (struct target *target, uint32_t *result) |
int | arm920t_post_debug_entry (struct target *target) |
void | arm920t_pre_restore_context (struct target *target) |
int | arm920t_read_memory (struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer) |
Reads a buffer, in the specified word size, with current MMU settings. More... | |
int | arm920t_soft_reset_halt (struct target *target) |
int | arm920t_write_memory (struct target *target, target_addr_t address, uint32_t size, uint32_t count, const uint8_t *buffer) |
Writes a buffer, in the specified word size, with current MMU settings. More... | |
static struct arm920t_common * | target_to_arm920 (struct target *target) |
Variables | |
const struct command_registration | arm920t_command_handlers [] |
int arm920t_arch_state | ( | struct target * | target | ) |
Logs summary of ARM920 state for a halted target.
Definition at line 511 of file arm920t.c.
References arm920_not, ARM920T_COMMON_MAGIC, arm_arch_state(), armv4_5_mmu_common::armv4_5_cache, arm920t_common::armv4_5_mmu, arm920t_common::common_magic, armv4_5_cache_common::d_u_cache_enabled, ERROR_OK, ERROR_TARGET_INVALID, armv4_5_cache_common::i_cache_enabled, LOG_ERROR, LOG_USER, armv4_5_mmu_common::mmu_enabled, state, and target_to_arm920().
int arm920t_disable_mmu_caches | ( | struct target * | target, |
int | mmu, | ||
int | d_u_cache, | ||
int | i_cache | ||
) |
Definition at line 342 of file arm920t.c.
References arm920t_read_cp15_physical(), arm920t_write_cp15_physical(), CP15PHYS_CTRL, ERROR_OK, and jtag_execute_queue().
Referenced by arm920t_init_arch_info(), arm920t_soft_reset_halt(), and fa526_init_arch_info().
int arm920t_enable_mmu_caches | ( | struct target * | target, |
int | mmu, | ||
int | d_u_cache, | ||
int | i_cache | ||
) |
Definition at line 370 of file arm920t.c.
References arm920t_read_cp15_physical(), arm920t_write_cp15_physical(), CP15PHYS_CTRL, ERROR_OK, and jtag_execute_queue().
Referenced by arm920t_init_arch_info(), and fa526_init_arch_info().
int arm920t_get_ttb | ( | struct target * | target, |
uint32_t * | result | ||
) |
Definition at line 326 of file arm920t.c.
References arm920t_read_cp15_interpreted(), and ERROR_OK.
Referenced by arm920t_init_arch_info(), and fa526_init_arch_info().
int arm920t_post_debug_entry | ( | struct target * | target | ) |
Definition at line 398 of file arm920t.c.
References arm920t_read_cp15_interpreted(), arm920t_read_cp15_physical(), arm920t_write_cp15_physical(), armv4_5_mmu_common::armv4_5_cache, armv4_5_identify_cache(), arm920t_common::armv4_5_mmu, arm920t_common::cp15_control_reg, CP15PHYS_CACHETYPE, CP15PHYS_CTRL, CP15PHYS_TESTSTATE, armv4_5_cache_common::ctype, arm920t_common::d_far, arm920t_common::d_fsr, armv4_5_cache_common::d_u_cache_enabled, ERROR_OK, armv4_5_cache_common::i_cache_enabled, arm920t_common::i_far, arm920t_common::i_fsr, jtag_execute_queue(), LOG_DEBUG, armv4_5_mmu_common::mmu_enabled, arm920t_common::preserve_cache, and target_to_arm920().
Referenced by arm920t_init_arch_info(), and fa526_init_arch_info().
void arm920t_pre_restore_context | ( | struct target * | target | ) |
Definition at line 474 of file arm920t.c.
References arm920t_read_cp15_physical(), arm920t_write_cp15_interpreted(), arm920t_write_cp15_physical(), CP15PHYS_TESTSTATE, arm920t_common::d_far, arm920t_common::d_fsr, arm920t_common::i_far, arm920t_common::i_fsr, jtag_execute_queue(), arm920t_common::preserve_cache, and target_to_arm920().
Referenced by arm920t_init_arch_info(), and fa526_init_arch_info().
int arm920t_read_memory | ( | struct target * | target, |
target_addr_t | address, | ||
uint32_t | size, | ||
uint32_t | count, | ||
uint8_t * | buffer | ||
) |
int arm920t_soft_reset_halt | ( | struct target * | target | ) |
Definition at line 731 of file arm920t.c.
References alive_sleep(), arm7_9_common::arm, arm920t_disable_mmu_caches(), arm_set_cpsr(), armv4_5_mmu_common::armv4_5_cache, arm920t_common::armv4_5_mmu, buf_get_u32(), buf_set_u32(), arm::cpsr, armv4_5_cache_common::d_u_cache_enabled, debug_level, reg::dirty, arm7_9_common::eice_cache, EICE_DBG_STAT, EICE_DBG_STATUS_DBGACK, embeddedice_read_reg(), ERROR_OK, ERROR_TARGET_TIMEOUT, armv4_5_cache_common::i_cache_enabled, jtag_execute_queue(), keep_alive(), LOG_ERROR, armv4_5_mmu_common::mmu_enabled, arm::pc, reg_cache::reg_list, target::state, target_call_event_callbacks(), TARGET_EVENT_HALTED, target_halt(), TARGET_HALTED, target_to_arm7_9(), target_to_arm920(), timeval_ms(), reg::valid, and reg::value.
int arm920t_write_memory | ( | struct target * | target, |
target_addr_t | address, | ||
uint32_t | size, | ||
uint32_t | count, | ||
const uint8_t * | buffer | ||
) |
Writes a buffer, in the specified word size, with current MMU settings.
Definition at line 592 of file arm920t.c.
References arm7_9_write_memory(), arm920t_write_cp15_interpreted(), armv4_5_mmu_common::armv4_5_cache, ARMV4_5_MCR, arm920t_common::armv4_5_mmu, armv4_5_mmu_translate_va(), armv4_5_mmu_write_physical(), buffer, count, armv4_5_cache_common::d_u_cache_enabled, ERROR_OK, armv4_5_cache_common::i_cache_enabled, LOG_DEBUG, armv4_5_mmu_common::mmu_enabled, size, target_read_memory(), and target_to_arm920().
Referenced by arm920t_init_arch_info(), and fa526_init_arch_info_2().
|
inlinestatic |
Definition at line 29 of file arm920t.h.
References target::arch_info, arm7_9_common::arm, and container_of.
Referenced by arm920_mmu(), arm920_virt2phys(), arm920t_arch_state(), arm920t_deinit_target(), arm920t_execute_cp15(), arm920t_post_debug_entry(), arm920t_pre_restore_context(), arm920t_read_cp15_physical(), arm920t_read_phys_memory(), arm920t_soft_reset_halt(), arm920t_write_cp15_physical(), arm920t_write_memory(), arm920t_write_phys_memory(), COMMAND_HANDLER(), and fa526_deinit_target().
|
extern |