armv7m_common_t -> struct armv7m_common
Remove misleading typedef and redundant suffix from struct armv7m_common.
This commit is contained in:
@@ -259,7 +259,7 @@ static int cortex_m3_examine_debug_reason(target_t *target)
|
||||
static int cortex_m3_examine_exception_reason(target_t *target)
|
||||
{
|
||||
uint32_t shcsr, except_sr, cfsr = -1, except_ar = -1;
|
||||
struct armv7m_common_s *armv7m = target_to_armv7m(target);
|
||||
struct armv7m_common *armv7m = target_to_armv7m(target);
|
||||
struct swjdp_common *swjdp = &armv7m->swjdp_info;
|
||||
|
||||
mem_ap_read_u32(swjdp, NVIC_SHCSR, &shcsr);
|
||||
@@ -310,7 +310,7 @@ static int cortex_m3_debug_entry(target_t *target)
|
||||
uint32_t xPSR;
|
||||
int retval;
|
||||
struct cortex_m3_common_s *cortex_m3 = target_to_cm3(target);
|
||||
struct armv7m_common_s *armv7m = &cortex_m3->armv7m;
|
||||
struct armv7m_common *armv7m = &cortex_m3->armv7m;
|
||||
struct swjdp_common *swjdp = &armv7m->swjdp_info;
|
||||
|
||||
LOG_DEBUG(" ");
|
||||
@@ -547,7 +547,7 @@ static void cortex_m3_enable_breakpoints(struct target_s *target)
|
||||
static int cortex_m3_resume(struct target_s *target, int current,
|
||||
uint32_t address, int handle_breakpoints, int debug_execution)
|
||||
{
|
||||
struct armv7m_common_s *armv7m = target_to_armv7m(target);
|
||||
struct armv7m_common *armv7m = target_to_armv7m(target);
|
||||
breakpoint_t *breakpoint = NULL;
|
||||
uint32_t resume_pc;
|
||||
|
||||
@@ -636,7 +636,7 @@ static int cortex_m3_step(struct target_s *target, int current,
|
||||
uint32_t address, int handle_breakpoints)
|
||||
{
|
||||
struct cortex_m3_common_s *cortex_m3 = target_to_cm3(target);
|
||||
struct armv7m_common_s *armv7m = &cortex_m3->armv7m;
|
||||
struct armv7m_common *armv7m = &cortex_m3->armv7m;
|
||||
struct swjdp_common *swjdp = &armv7m->swjdp_info;
|
||||
breakpoint_t *breakpoint = NULL;
|
||||
|
||||
@@ -1231,7 +1231,7 @@ static int cortex_m3_load_core_reg_u32(struct target_s *target,
|
||||
enum armv7m_regtype type, uint32_t num, uint32_t * value)
|
||||
{
|
||||
int retval;
|
||||
struct armv7m_common_s *armv7m = target_to_armv7m(target);
|
||||
struct armv7m_common *armv7m = target_to_armv7m(target);
|
||||
struct swjdp_common *swjdp = &armv7m->swjdp_info;
|
||||
|
||||
/* NOTE: we "know" here that the register identifiers used
|
||||
@@ -1295,7 +1295,7 @@ static int cortex_m3_store_core_reg_u32(struct target_s *target,
|
||||
{
|
||||
int retval;
|
||||
uint32_t reg;
|
||||
struct armv7m_common_s *armv7m = target_to_armv7m(target);
|
||||
struct armv7m_common *armv7m = target_to_armv7m(target);
|
||||
struct swjdp_common *swjdp = &armv7m->swjdp_info;
|
||||
|
||||
#ifdef ARMV7_GDB_HACKS
|
||||
@@ -1370,7 +1370,7 @@ static int cortex_m3_store_core_reg_u32(struct target_s *target,
|
||||
static int cortex_m3_read_memory(struct target_s *target, uint32_t address,
|
||||
uint32_t size, uint32_t count, uint8_t *buffer)
|
||||
{
|
||||
struct armv7m_common_s *armv7m = target_to_armv7m(target);
|
||||
struct armv7m_common *armv7m = target_to_armv7m(target);
|
||||
struct swjdp_common *swjdp = &armv7m->swjdp_info;
|
||||
int retval;
|
||||
|
||||
@@ -1402,7 +1402,7 @@ static int cortex_m3_read_memory(struct target_s *target, uint32_t address,
|
||||
static int cortex_m3_write_memory(struct target_s *target, uint32_t address,
|
||||
uint32_t size, uint32_t count, uint8_t *buffer)
|
||||
{
|
||||
struct armv7m_common_s *armv7m = target_to_armv7m(target);
|
||||
struct armv7m_common *armv7m = target_to_armv7m(target);
|
||||
struct swjdp_common *swjdp = &armv7m->swjdp_info;
|
||||
int retval;
|
||||
|
||||
@@ -1654,7 +1654,7 @@ static int cortex_m3_dcc_read(struct swjdp_common *swjdp, uint8_t *value, uint8_
|
||||
static int cortex_m3_target_request_data(target_t *target,
|
||||
uint32_t size, uint8_t *buffer)
|
||||
{
|
||||
struct armv7m_common_s *armv7m = target_to_armv7m(target);
|
||||
struct armv7m_common *armv7m = target_to_armv7m(target);
|
||||
struct swjdp_common *swjdp = &armv7m->swjdp_info;
|
||||
uint8_t data;
|
||||
uint8_t ctrl;
|
||||
@@ -1674,7 +1674,7 @@ static int cortex_m3_handle_target_request(void *priv)
|
||||
target_t *target = priv;
|
||||
if (!target_was_examined(target))
|
||||
return ERROR_OK;
|
||||
struct armv7m_common_s *armv7m = target_to_armv7m(target);
|
||||
struct armv7m_common *armv7m = target_to_armv7m(target);
|
||||
struct swjdp_common *swjdp = &armv7m->swjdp_info;
|
||||
|
||||
if (!target->dbg_msg_enabled)
|
||||
@@ -1711,7 +1711,7 @@ static int cortex_m3_init_arch_info(target_t *target,
|
||||
cortex_m3_common_t *cortex_m3, struct jtag_tap *tap)
|
||||
{
|
||||
int retval;
|
||||
struct armv7m_common_s *armv7m = &cortex_m3->armv7m;
|
||||
struct armv7m_common *armv7m = &cortex_m3->armv7m;
|
||||
|
||||
armv7m_init_arch_info(target, armv7m);
|
||||
|
||||
@@ -1837,7 +1837,7 @@ COMMAND_HANDLER(handle_cortex_m3_vector_catch_command)
|
||||
{
|
||||
target_t *target = get_current_target(cmd_ctx);
|
||||
struct cortex_m3_common_s *cortex_m3 = target_to_cm3(target);
|
||||
struct armv7m_common_s *armv7m = &cortex_m3->armv7m;
|
||||
struct armv7m_common *armv7m = &cortex_m3->armv7m;
|
||||
struct swjdp_common *swjdp = &armv7m->swjdp_info;
|
||||
uint32_t demcr = 0;
|
||||
int retval;
|
||||
|
||||
Reference in New Issue
Block a user