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

Go to the source code of this file.

Functions

static int dragonite_target_create (struct target *target, Jim_Interp *interp)
 
static int feroceon_assert_reset (struct target *target)
 
static void feroceon_branch_resume (struct target *target)
 
static void feroceon_branch_resume_thumb (struct target *target)
 
static int feroceon_bulk_write_memory (struct target *target, target_addr_t address, uint32_t count, const uint8_t *buffer)
 
static void feroceon_change_to_arm (struct target *target, uint32_t *r0, uint32_t *pc)
 
static void feroceon_common_setup (struct target *target)
 
static void feroceon_deinit_target (struct target *target)
 
static void feroceon_disable_single_step (struct target *target)
 
static int feroceon_dummy_clock_out (struct arm_jtag *jtag_info, uint32_t instr)
 
static void feroceon_enable_single_step (struct target *target, uint32_t next_pc)
 
static int feroceon_examine (struct target *target)
 
static int feroceon_examine_debug_reason (struct target *target)
 
static int feroceon_init_target (struct command_context *cmd_ctx, struct target *target)
 
static void feroceon_read_core_regs (struct target *target, uint32_t mask, uint32_t *core_regs[16])
 
static void feroceon_read_core_regs_target_buffer (struct target *target, uint32_t mask, void *buffer, int size)
 
static int feroceon_read_cp15 (struct target *target, uint32_t op1, uint32_t op2, uint32_t crn, uint32_t crm, uint32_t *value)
 
static void feroceon_read_xpsr (struct target *target, uint32_t *xpsr, int spsr)
 
static void feroceon_set_dbgrq (struct target *target)
 
static int feroceon_target_create (struct target *target, Jim_Interp *interp)
 
static void feroceon_write_core_regs (struct target *target, uint32_t mask, uint32_t core_regs[16])
 
static int feroceon_write_cp15 (struct target *target, uint32_t op1, uint32_t op2, uint32_t crn, uint32_t crm, uint32_t value)
 
static void feroceon_write_xpsr (struct target *target, uint32_t xpsr, int spsr)
 
static void feroceon_write_xpsr_im8 (struct target *target, uint8_t xpsr_im, int rot, int spsr)
 

Variables

struct target_type dragonite_target
 
struct target_type feroceon_target
 

Function Documentation

◆ dragonite_target_create()

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

◆ feroceon_assert_reset()

static int feroceon_assert_reset ( struct target target)
static

◆ feroceon_branch_resume()

static void feroceon_branch_resume ( struct target target)
static

◆ feroceon_branch_resume_thumb()

◆ feroceon_bulk_write_memory()

◆ feroceon_change_to_arm()

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

◆ feroceon_common_setup()

◆ feroceon_deinit_target()

static void feroceon_deinit_target ( struct target target)
static

Definition at line 585 of file feroceon.c.

References arm9tdmi_deinit_target().

◆ feroceon_disable_single_step()

◆ feroceon_dummy_clock_out()

static int feroceon_dummy_clock_out ( struct arm_jtag jtag_info,
uint32_t  instr 
)
static

◆ feroceon_enable_single_step()

static void feroceon_enable_single_step ( struct target target,
uint32_t  next_pc 
)
static

◆ feroceon_examine()

static int feroceon_examine ( struct target target)
static

Definition at line 657 of file feroceon.c.

◆ feroceon_examine_debug_reason()

static int feroceon_examine_debug_reason ( struct target target)
static

Definition at line 442 of file feroceon.c.

References DBG_REASON_DBGRQ, DBG_REASON_SINGLESTEP, target::debug_reason, and ERROR_OK.

Referenced by feroceon_common_setup().

◆ feroceon_init_target()

static int feroceon_init_target ( struct command_context cmd_ctx,
struct target target 
)
static

Definition at line 578 of file feroceon.c.

References arm9tdmi_init_target(), and ERROR_OK.

◆ feroceon_read_core_regs()

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

◆ feroceon_read_core_regs_target_buffer()

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

◆ feroceon_read_cp15()

static int feroceon_read_cp15 ( struct target target,
uint32_t  op1,
uint32_t  op2,
uint32_t  crn,
uint32_t  crm,
uint32_t *  value 
)
static

◆ feroceon_read_xpsr()

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

◆ feroceon_set_dbgrq()

static void feroceon_set_dbgrq ( struct target target)
static

◆ feroceon_target_create()

◆ feroceon_write_core_regs()

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

◆ feroceon_write_cp15()

static int feroceon_write_cp15 ( struct target target,
uint32_t  op1,
uint32_t  op2,
uint32_t  crn,
uint32_t  crm,
uint32_t  value 
)
static

◆ feroceon_write_xpsr()

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

◆ feroceon_write_xpsr_im8()

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

Variable Documentation

◆ dragonite_target

struct target_type dragonite_target

Definition at line 657 of file feroceon.c.

◆ feroceon_target

struct target_type feroceon_target

Definition at line 657 of file feroceon.c.