OpenOCD
|
Go to the source code of this file.
Functions | |
static bool | arc_mem_is_slow_memory (struct arc_common *arc, uint32_t addr, uint32_t size, uint32_t count) |
int | arc_mem_read (struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer) |
static int | arc_mem_read_block (struct target *target, target_addr_t addr, uint32_t size, uint32_t count, void *buf) |
int | arc_mem_write (struct target *target, target_addr_t address, uint32_t size, uint32_t count, const uint8_t *buffer) |
static int | arc_mem_write_block16 (struct target *target, uint32_t addr, uint32_t count, void *buf) |
static int | arc_mem_write_block32 (struct target *target, uint32_t addr, uint32_t count, void *buf) |
static int | arc_mem_write_block8 (struct target *target, uint32_t addr, uint32_t count, void *buf) |
|
static |
Definition at line 18 of file arc_mem.c.
References addr, count, arc_common::dccm_end, arc_common::dccm_start, arc_common::iccm0_start, arc_common::iccm1_end, arc_common::iccm1_start, and size.
Referenced by arc_mem_read_block(), arc_mem_write_block16(), and arc_mem_write_block8().
int arc_mem_read | ( | struct target * | target, |
target_addr_t | address, | ||
uint32_t | size, | ||
uint32_t | count, | ||
uint8_t * | buffer | ||
) |
Definition at line 237 of file arc_mem.c.
References arc_mem_read_block(), buffer, count, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, ERROR_TARGET_NOT_HALTED, ERROR_TARGET_UNALIGNED_ACCESS, LOG_DEBUG, LOG_ERROR, LOG_WARNING, size, target::state, target_buffer_set_u32_array(), TARGET_HALTED, and TARGET_PRIxADDR.
|
static |
Definition at line 218 of file arc_mem.c.
References addr, arc_cache_flush(), arc_jtag_read_memory(), arc_mem_is_slow_memory(), CHECK_RETVAL, count, ERROR_OK, arc_common::jtag_info, LOG_DEBUG, size, TARGET_PRIxADDR, and target_to_arc().
Referenced by arc_mem_read().
int arc_mem_write | ( | struct target * | target, |
target_addr_t | address, | ||
uint32_t | size, | ||
uint32_t | count, | ||
const uint8_t * | buffer | ||
) |
Definition at line 155 of file arc_mem.c.
References arc_mem_write_block16(), arc_mem_write_block32(), arc_mem_write_block8(), buffer, count, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, ERROR_TARGET_NOT_HALTED, ERROR_TARGET_UNALIGNED_ACCESS, LOG_DEBUG, LOG_ERROR, LOG_TARGET_ERROR, NULL, size, target::state, target_buffer_get_u16_array(), target_buffer_get_u32_array(), TARGET_HALTED, and TARGET_PRIxADDR.
|
static |
Definition at line 60 of file arc_mem.c.
References addr, arc_cache_flush(), arc_cache_invalidate(), arc_jtag_read_memory(), arc_jtag_write_memory(), arc_mem_is_slow_memory(), CHECK_RETVAL, count, ERROR_OK, arc_common::jtag_info, LOG_DEBUG, target_buffer_get_u32(), target_buffer_set_u16(), target_buffer_set_u32(), and target_to_arc().
Referenced by arc_mem_write().
|
static |
Definition at line 33 of file arc_mem.c.
References addr, arc_cache_flush(), arc_cache_invalidate(), arc_jtag_write_memory(), CHECK_RETVAL, count, ERROR_OK, arc_common::jtag_info, LOG_DEBUG, and target_to_arc().
Referenced by arc_mem_write().
|
static |
Definition at line 118 of file arc_mem.c.
References addr, arc_cache_flush(), arc_cache_invalidate(), arc_jtag_read_memory(), arc_jtag_write_memory(), arc_mem_is_slow_memory(), CHECK_RETVAL, count, ERROR_OK, arc_common::jtag_info, LOG_DEBUG, target_buffer_get_u32(), target_buffer_set_u32(), and target_to_arc().
Referenced by arc_mem_write().