OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | arm926ejs_common |
Macros | |
#define | ARM926EJS_COMMON_MAGIC 0xa926a926U |
Functions | |
int | arm926ejs_arch_state (struct target *target) |
Logs summary of ARM926 state for a halted target. More... | |
int | arm926ejs_init_arch_info (struct target *target, struct arm926ejs_common *arm926ejs, struct jtag_tap *tap) |
int | arm926ejs_soft_reset_halt (struct target *target) |
int | arm926ejs_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 arm926ejs_common * | target_to_arm926 (struct target *target) |
Variables | |
const struct command_registration | arm926ejs_command_handlers [] |
#define ARM926EJS_COMMON_MAGIC 0xa926a926U |
Definition at line 14 of file arm926ejs.h.
int arm926ejs_arch_state | ( | struct target * | target | ) |
Logs summary of ARM926 state for a halted target.
Definition at line 504 of file arm926ejs.c.
References arm926_not, ARM926EJS_COMMON_MAGIC, arm_arch_state(), armv4_5_mmu_common::armv4_5_cache, arm926ejs_common::armv4_5_mmu, arm926ejs_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_arm926().
int arm926ejs_init_arch_info | ( | struct target * | target, |
struct arm926ejs_common * | arm926ejs, | ||
struct jtag_tap * | tap | ||
) |
Definition at line 666 of file arm926ejs.c.
References arm7_9_common::arm, arm926ejs_common::arm7_9_common, arm7_9_read_memory(), arm7_9_write_memory(), ARM926EJS_COMMON_MAGIC, arm926ejs_cp15_read(), arm926ejs_cp15_write(), arm926ejs_disable_mmu_caches(), arm926ejs_enable_mmu_caches(), arm926ejs_examine_debug_reason(), arm926ejs_get_ttb(), arm926ejs_mcr(), arm926ejs_mrc(), arm926ejs_post_debug_entry(), arm926ejs_pre_restore_context(), arm926ejs_write_memory(), arm9tdmi_init_arch_info(), arm7_9_common::arm_bkpt, armv4_5_mmu_common::armv4_5_cache, arm926ejs_common::armv4_5_mmu, ARMV5_BKPT, ARMV5_T_BKPT, arm926ejs_common::common_magic, armv4_5_cache_common::ctype, armv4_5_mmu_common::disable_mmu_caches, armv4_5_mmu_common::enable_mmu_caches, ERROR_OK, arm7_9_common::examine_debug_reason, armv4_5_mmu_common::get_ttb, armv4_5_mmu_common::has_tiny_pages, arm::mcr, armv4_5_mmu_common::mmu_enabled, arm::mrc, arm7_9_common::post_debug_entry, arm7_9_common::pre_restore_context, arm926ejs_common::read_cp15, armv4_5_mmu_common::read_memory, arm7_9_common::thumb_bkpt, arm926ejs_common::write_cp15, arm7_9_common::write_memory, and armv4_5_mmu_common::write_memory.
Referenced by arm926ejs_target_create(), and feroceon_target_create().
int arm926ejs_soft_reset_halt | ( | struct target * | target | ) |
Definition at line 526 of file arm926ejs.c.
References alive_sleep(), arm7_9_common::arm, arm926ejs_disable_mmu_caches(), arm_set_cpsr(), armv4_5_mmu_common::armv4_5_cache, arm926ejs_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_arm926(), timeval_ms(), reg::valid, and reg::value.
int arm926ejs_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 586 of file arm926ejs.c.
References arm7_9_write_memory(), armv4_5_mmu_common::armv4_5_cache, arm926ejs_common::armv4_5_mmu, armv4_5_mmu_write_physical(), buffer, count, armv4_5_cache_common::d_u_cache_enabled, ERROR_OK, armv4_5_cache_common::i_cache_enabled, armv4_5_mmu_common::mmu_enabled, size, target_to_arm926(), target::type, target_type::virt2phys, and arm926ejs_common::write_cp15.
Referenced by arm926ejs_init_arch_info(), and feroceon_target_create().
|
inlinestatic |
Definition at line 31 of file arm926ejs.h.
References target::arch_info, arm7_9_common::arm, and container_of.
Referenced by arm926ejs_arch_state(), arm926ejs_deinit_target(), arm926ejs_disable_mmu_caches(), arm926ejs_enable_mmu_caches(), arm926ejs_get_ttb(), arm926ejs_post_debug_entry(), arm926ejs_pre_restore_context(), arm926ejs_read_phys_memory(), arm926ejs_soft_reset_halt(), arm926ejs_virt2phys(), arm926ejs_write_memory(), arm926ejs_write_phys_memory(), and COMMAND_HANDLER().
|
extern |
Definition at line 752 of file arm926ejs.c.