OpenOCD
fa526.c File Reference
Include dependency graph for fa526.c:

Go to the source code of this file.

Functions

static void fa526_branch_resume_thumb (struct target *target)
 
static void fa526_change_to_arm (struct target *target, uint32_t *r0, uint32_t *pc)
 
static void fa526_deinit_target (struct target *target)
 
static int fa526_init_arch_info (struct target *target, struct arm920t_common *arm920t, struct jtag_tap *tap)
 
static int fa526_init_arch_info_2 (struct target *target, struct arm7_9_common *arm7_9, struct jtag_tap *tap)
 
static void fa526_read_core_regs (struct target *target, uint32_t mask, uint32_t *core_regs[16])
 
static void fa526_read_core_regs_target_buffer (struct target *target, uint32_t mask, void *buffer, int size)
 
static void fa526_read_xpsr (struct target *target, uint32_t *xpsr, int spsr)
 
static int fa526_target_create (struct target *target, Jim_Interp *interp)
 
static void fa526_write_core_regs (struct target *target, uint32_t mask, uint32_t core_regs[16])
 
static void fa526_write_pc (struct target *target, uint32_t pc)
 
static void fa526_write_xpsr (struct target *target, uint32_t xpsr, int spsr)
 
static void fa526_write_xpsr_im8 (struct target *target, uint8_t xpsr_im, int rot, int spsr)
 

Variables

struct target_type fa526_target
 Holds methods for FA526 targets. More...
 

Function Documentation

◆ fa526_branch_resume_thumb()

static void fa526_branch_resume_thumb ( struct target target)
static

Definition at line 236 of file fa526.c.

References LOG_ERROR.

Referenced by fa526_init_arch_info_2().

◆ fa526_change_to_arm()

static void fa526_change_to_arm ( struct target target,
uint32_t *  r0,
uint32_t *  pc 
)
static

Definition at line 25 of file fa526.c.

References LOG_ERROR.

Referenced by fa526_init_arch_info_2().

◆ fa526_deinit_target()

static void fa526_deinit_target ( struct target target)
static

Definition at line 339 of file fa526.c.

References arm7_9_deinit(), arm_free_reg_cache(), target_to_arm(), and target_to_arm920().

◆ fa526_init_arch_info()

◆ fa526_init_arch_info_2()

static int fa526_init_arch_info_2 ( struct target target,
struct arm7_9_common arm7_9,
struct jtag_tap tap 
)
static

Definition at line 241 of file fa526.c.

References arm7_9_bulk_write_memory(), arm7_9_init_arch_info(), arm920t_write_memory(), arm9tdmi_branch_resume(), arm9tdmi_disable_single_step(), arm9tdmi_enable_single_step(), arm9tdmi_examine_debug_reason(), arm9tdmi_load_byte_reg(), arm9tdmi_load_hword_reg(), arm9tdmi_load_word_regs(), arm9tdmi_store_byte_reg(), arm9tdmi_store_hword_reg(), arm9tdmi_store_word_regs(), arm7_9_common::arm_bkpt, arm7_9_common::branch_resume, arm7_9_common::branch_resume_thumb, arm7_9_common::bulk_write_memory, arm7_9_common::change_to_arm, arm7_9_common::dbgreq_adjust_pc, arm7_9_common::disable_single_step, arm7_9_common::enable_single_step, ERROR_OK, arm7_9_common::examine_debug_reason, fa526_branch_resume_thumb(), fa526_change_to_arm(), fa526_read_core_regs(), fa526_read_core_regs_target_buffer(), fa526_read_xpsr(), fa526_write_core_regs(), fa526_write_pc(), fa526_write_xpsr(), fa526_write_xpsr_im8(), arm7_9_common::has_vector_catch, arm7_9_common::jtag_info, arm7_9_common::load_byte_reg, arm7_9_common::load_hword_reg, arm7_9_common::load_word_regs, NULL, arm7_9_common::post_debug_entry, arm7_9_common::pre_restore_context, arm7_9_common::read_core_regs, arm7_9_common::read_core_regs_target_buffer, arm7_9_common::read_xpsr, arm_jtag::scann_size, arm7_9_common::store_byte_reg, arm7_9_common::store_hword_reg, arm7_9_common::store_word_regs, arm_jtag::tap, arm7_9_common::thumb_bkpt, arm7_9_common::use_dbgrq, arm7_9_common::write_core_regs, arm7_9_common::write_memory, arm7_9_common::write_pc, arm7_9_common::write_xpsr, and arm7_9_common::write_xpsr_im8.

Referenced by fa526_init_arch_info().

◆ fa526_read_core_regs()

static void fa526_read_core_regs ( struct target target,
uint32_t  mask,
uint32_t *  core_regs[16] 
)
static

◆ fa526_read_core_regs_target_buffer()

static void fa526_read_core_regs_target_buffer ( struct target target,
uint32_t  mask,
void *  buffer,
int  size 
)
static

◆ fa526_read_xpsr()

static void fa526_read_xpsr ( struct target target,
uint32_t *  xpsr,
int  spsr 
)
static

◆ fa526_target_create()

static int fa526_target_create ( struct target target,
Jim_Interp *  interp 
)
static

Definition at line 332 of file fa526.c.

References fa526_init_arch_info(), and target::tap.

◆ fa526_write_core_regs()

static void fa526_write_core_regs ( struct target target,
uint32_t  mask,
uint32_t  core_regs[16] 
)
static

◆ fa526_write_pc()

static void fa526_write_pc ( struct target target,
uint32_t  pc 
)
static

◆ fa526_write_xpsr()

static void fa526_write_xpsr ( struct target target,
uint32_t  xpsr,
int  spsr 
)
static

◆ fa526_write_xpsr_im8()

static void fa526_write_xpsr_im8 ( struct target target,
uint8_t  xpsr_im,
int  rot,
int  spsr 
)
static

Variable Documentation

◆ fa526_target

struct target_type fa526_target

Holds methods for FA526 targets.

Definition at line 339 of file fa526.c.