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

Go to the source code of this file.

Functions

static int avr32_ap7k_add_breakpoint (struct target *target, struct breakpoint *breakpoint)
 
static int avr32_ap7k_add_watchpoint (struct target *target, struct watchpoint *watchpoint)
 
static int avr32_ap7k_arch_state (struct target *target)
 
static int avr32_ap7k_assert_reset (struct target *target)
 
static int avr32_ap7k_deassert_reset (struct target *target)
 
static int avr32_ap7k_debug_entry (struct target *target)
 
static int avr32_ap7k_examine (struct target *target)
 
static int avr32_ap7k_get_gdb_reg_list (struct target *target, struct reg **reg_list[], int *reg_list_size, enum target_register_class reg_class)
 
static int avr32_ap7k_halt (struct target *target)
 
static int avr32_ap7k_init_target (struct command_context *cmd_ctx, struct target *target)
 
static int avr32_ap7k_poll (struct target *target)
 
static int avr32_ap7k_read_memory (struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer)
 
static int avr32_ap7k_remove_breakpoint (struct target *target, struct breakpoint *breakpoint)
 
static int avr32_ap7k_remove_watchpoint (struct target *target, struct watchpoint *watchpoint)
 
static int avr32_ap7k_restore_context (struct target *target)
 
static int avr32_ap7k_resume (struct target *target, int current, target_addr_t address, int handle_breakpoints, int debug_execution)
 
static int avr32_ap7k_save_context (struct target *target)
 
static int avr32_ap7k_step (struct target *target, int current, target_addr_t address, int handle_breakpoints)
 
static int avr32_ap7k_target_create (struct target *target, Jim_Interp *interp)
 
static int avr32_ap7k_write_memory (struct target *target, target_addr_t address, uint32_t size, uint32_t count, const uint8_t *buffer)
 
static struct reg_cacheavr32_build_reg_cache (struct target *target)
 
static int avr32_get_core_reg (struct reg *reg)
 
static int avr32_read_core_reg (struct target *target, int num)
 
static int avr32_set_core_reg (struct reg *reg, uint8_t *buf)
 
static int avr32_write_core_reg (struct target *target, int num)
 

Variables

struct target_type avr32_ap7k_target
 
static const char *const avr32_core_reg_list []
 
static const struct avr32_core_reg avr32_core_reg_list_arch_info [AVR32NUMCOREREGS]
 
static const struct reg_arch_type avr32_reg_type
 

Function Documentation

◆ avr32_ap7k_add_breakpoint()

static int avr32_ap7k_add_breakpoint ( struct target target,
struct breakpoint breakpoint 
)
static

Definition at line 393 of file avr32_ap7k.c.

References ERROR_OK, and LOG_ERROR.

◆ avr32_ap7k_add_watchpoint()

static int avr32_ap7k_add_watchpoint ( struct target target,
struct watchpoint watchpoint 
)
static

Definition at line 408 of file avr32_ap7k.c.

References ERROR_OK, and LOG_ERROR.

◆ avr32_ap7k_arch_state()

static int avr32_ap7k_arch_state ( struct target target)
static

◆ avr32_ap7k_assert_reset()

static int avr32_ap7k_assert_reset ( struct target target)
static

Definition at line 289 of file avr32_ap7k.c.

References ERROR_OK, and LOG_ERROR.

◆ avr32_ap7k_deassert_reset()

static int avr32_ap7k_deassert_reset ( struct target target)
static

Definition at line 296 of file avr32_ap7k.c.

References ERROR_OK, and LOG_ERROR.

◆ avr32_ap7k_debug_entry()

static int avr32_ap7k_debug_entry ( struct target target)
static

◆ avr32_ap7k_examine()

◆ avr32_ap7k_get_gdb_reg_list()

static int avr32_ap7k_get_gdb_reg_list ( struct target target,
struct reg **  reg_list[],
int *  reg_list_size,
enum target_register_class  reg_class 
)
static

Definition at line 557 of file avr32_ap7k.c.

References AVR32NUMCOREREGS, ERROR_FAIL, and LOG_ERROR.

◆ avr32_ap7k_halt()

◆ avr32_ap7k_init_target()

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

◆ avr32_ap7k_poll()

◆ avr32_ap7k_read_memory()

static int avr32_ap7k_read_memory ( struct target target,
target_addr_t  address,
uint32_t  size,
uint32_t  count,
uint8_t *  buffer 
)
static

◆ avr32_ap7k_remove_breakpoint()

static int avr32_ap7k_remove_breakpoint ( struct target target,
struct breakpoint breakpoint 
)
static

Definition at line 400 of file avr32_ap7k.c.

References ERROR_OK, and LOG_ERROR.

◆ avr32_ap7k_remove_watchpoint()

static int avr32_ap7k_remove_watchpoint ( struct target target,
struct watchpoint watchpoint 
)
static

Definition at line 415 of file avr32_ap7k.c.

References ERROR_OK, and LOG_ERROR.

◆ avr32_ap7k_restore_context()

◆ avr32_ap7k_resume()

◆ avr32_ap7k_save_context()

◆ avr32_ap7k_step()

static int avr32_ap7k_step ( struct target target,
int  current,
target_addr_t  address,
int  handle_breakpoints 
)
static

Definition at line 385 of file avr32_ap7k.c.

References ERROR_OK, and LOG_ERROR.

◆ avr32_ap7k_target_create()

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

◆ avr32_ap7k_write_memory()

static int avr32_ap7k_write_memory ( struct target target,
target_addr_t  address,
uint32_t  size,
uint32_t  count,
const uint8_t *  buffer 
)
static

◆ avr32_build_reg_cache()

◆ avr32_get_core_reg()

static int avr32_get_core_reg ( struct reg reg)
static

◆ avr32_read_core_reg()

◆ avr32_set_core_reg()

static int avr32_set_core_reg ( struct reg reg,
uint8_t *  buf 
)
static

Definition at line 141 of file avr32_ap7k.c.

◆ avr32_write_core_reg()

Variable Documentation

◆ avr32_ap7k_target

struct target_type avr32_ap7k_target

Definition at line 557 of file avr32_ap7k.c.

◆ avr32_core_reg_list

const char* const avr32_core_reg_list[]
static
Initial value:
= {
"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8",
"r9", "r10", "r11", "r12", "sp", "lr", "pc", "sr"
}

Definition at line 25 of file avr32_ap7k.c.

Referenced by avr32_build_reg_cache().

◆ avr32_core_reg_list_arch_info

const struct avr32_core_reg avr32_core_reg_list_arch_info[AVR32NUMCOREREGS]
static
Initial value:
= {
{0, NULL, NULL},
{1, NULL, NULL},
{2, NULL, NULL},
{3, NULL, NULL},
{4, NULL, NULL},
{5, NULL, NULL},
{6, NULL, NULL},
{7, NULL, NULL},
{8, NULL, NULL},
{9, NULL, NULL},
{10, NULL, NULL},
{11, NULL, NULL},
{12, NULL, NULL},
{13, NULL, NULL},
{14, NULL, NULL},
{15, NULL, NULL},
{16, NULL, NULL},
}
#define NULL
Definition: usb.h:16

Definition at line 25 of file avr32_ap7k.c.

Referenced by avr32_build_reg_cache().

◆ avr32_reg_type

const struct reg_arch_type avr32_reg_type
static
Initial value:
= {
}
static int avr32_set_core_reg(struct reg *reg, uint8_t *buf)
Definition: avr32_ap7k.c:141
static int avr32_get_core_reg(struct reg *reg)
Definition: avr32_ap7k.c:127

Definition at line 141 of file avr32_ap7k.c.

Referenced by avr32_build_reg_cache().