Remove misleading typedef and redundant suffix from struct cortex_a8_common.
{
int retval = ERROR_OK;
uint32_t dscr;
{
int retval = ERROR_OK;
uint32_t dscr;
- struct cortex_a8_common_s *cortex_a8 = target_to_cortex_a8(target);
+ struct cortex_a8_common *cortex_a8 = target_to_cortex_a8(target);
struct armv7a_common *armv7a = &cortex_a8->armv7a_common;
struct swjdp_common *swjdp = &armv7a->swjdp_info;
enum target_state prev_target_state = target->state;
struct armv7a_common *armv7a = &cortex_a8->armv7a_common;
struct swjdp_common *swjdp = &armv7a->swjdp_info;
enum target_state prev_target_state = target->state;
uint32_t regfile[16], pc, cpsr, dscr;
int retval = ERROR_OK;
working_area_t *regfile_working_area = NULL;
uint32_t regfile[16], pc, cpsr, dscr;
int retval = ERROR_OK;
working_area_t *regfile_working_area = NULL;
- struct cortex_a8_common_s *cortex_a8 = target_to_cortex_a8(target);
+ struct cortex_a8_common *cortex_a8 = target_to_cortex_a8(target);
struct armv7a_common *armv7a = target_to_armv7a(target);
struct armv4_5_common_s *armv4_5 = &armv7a->armv4_5_common;
struct swjdp_common *swjdp = &armv7a->swjdp_info;
struct armv7a_common *armv7a = target_to_armv7a(target);
struct armv4_5_common_s *armv4_5 = &armv7a->armv4_5_common;
struct swjdp_common *swjdp = &armv7a->swjdp_info;
static void cortex_a8_post_debug_entry(target_t *target)
{
static void cortex_a8_post_debug_entry(target_t *target)
{
- struct cortex_a8_common_s *cortex_a8 = target_to_cortex_a8(target);
+ struct cortex_a8_common *cortex_a8 = target_to_cortex_a8(target);
struct armv7a_common *armv7a = &cortex_a8->armv7a_common;
// cortex_a8_read_cp(target, &cp15_control_register, 15, 0, 1, 0, 0);
struct armv7a_common *armv7a = &cortex_a8->armv7a_common;
// cortex_a8_read_cp(target, &cp15_control_register, 15, 0, 1, 0, 0);
int brp_i=0;
uint32_t control;
uint8_t byte_addr_select = 0x0F;
int brp_i=0;
uint32_t control;
uint8_t byte_addr_select = 0x0F;
- struct cortex_a8_common_s *cortex_a8 = target_to_cortex_a8(target);
+ struct cortex_a8_common *cortex_a8 = target_to_cortex_a8(target);
struct armv7a_common *armv7a = &cortex_a8->armv7a_common;
cortex_a8_brp_t * brp_list = cortex_a8->brp_list;
struct armv7a_common *armv7a = &cortex_a8->armv7a_common;
cortex_a8_brp_t * brp_list = cortex_a8->brp_list;
static int cortex_a8_unset_breakpoint(struct target_s *target, breakpoint_t *breakpoint)
{
int retval;
static int cortex_a8_unset_breakpoint(struct target_s *target, breakpoint_t *breakpoint)
{
int retval;
- struct cortex_a8_common_s *cortex_a8 = target_to_cortex_a8(target);
+ struct cortex_a8_common *cortex_a8 = target_to_cortex_a8(target);
struct armv7a_common *armv7a = &cortex_a8->armv7a_common;
cortex_a8_brp_t * brp_list = cortex_a8->brp_list;
struct armv7a_common *armv7a = &cortex_a8->armv7a_common;
cortex_a8_brp_t * brp_list = cortex_a8->brp_list;
int cortex_a8_add_breakpoint(struct target_s *target, breakpoint_t *breakpoint)
{
int cortex_a8_add_breakpoint(struct target_s *target, breakpoint_t *breakpoint)
{
- struct cortex_a8_common_s *cortex_a8 = target_to_cortex_a8(target);
+ struct cortex_a8_common *cortex_a8 = target_to_cortex_a8(target);
if ((breakpoint->type == BKPT_HARD) && (cortex_a8->brp_num_available < 1))
{
if ((breakpoint->type == BKPT_HARD) && (cortex_a8->brp_num_available < 1))
{
static int cortex_a8_remove_breakpoint(struct target_s *target, breakpoint_t *breakpoint)
{
static int cortex_a8_remove_breakpoint(struct target_s *target, breakpoint_t *breakpoint)
{
- struct cortex_a8_common_s *cortex_a8 = target_to_cortex_a8(target);
+ struct cortex_a8_common *cortex_a8 = target_to_cortex_a8(target);
#if 0
/* It is perfectly possible to remove brakpoints while the taget is running */
#if 0
/* It is perfectly possible to remove brakpoints while the taget is running */
static int cortex_a8_examine(struct target_s *target)
{
static int cortex_a8_examine(struct target_s *target)
{
- struct cortex_a8_common_s *cortex_a8 = target_to_cortex_a8(target);
+ struct cortex_a8_common *cortex_a8 = target_to_cortex_a8(target);
struct armv7a_common *armv7a = &cortex_a8->armv7a_common;
struct swjdp_common *swjdp = &armv7a->swjdp_info;
int i;
struct armv7a_common *armv7a = &cortex_a8->armv7a_common;
struct swjdp_common *swjdp = &armv7a->swjdp_info;
int i;
}
int cortex_a8_init_arch_info(target_t *target,
}
int cortex_a8_init_arch_info(target_t *target,
- cortex_a8_common_t *cortex_a8, struct jtag_tap *tap)
+ struct cortex_a8_common *cortex_a8, struct jtag_tap *tap)
{
armv4_5_common_t *armv4_5;
struct armv7a_common *armv7a;
{
armv4_5_common_t *armv4_5;
struct armv7a_common *armv7a;
armv4_5 = &armv7a->armv4_5_common;
struct swjdp_common *swjdp = &armv7a->swjdp_info;
armv4_5 = &armv7a->armv4_5_common;
struct swjdp_common *swjdp = &armv7a->swjdp_info;
- /* Setup cortex_a8_common_t */
+ /* Setup struct cortex_a8_common */
cortex_a8->common_magic = CORTEX_A8_COMMON_MAGIC;
armv4_5->arch_info = armv7a;
cortex_a8->common_magic = CORTEX_A8_COMMON_MAGIC;
armv4_5->arch_info = armv7a;
static int cortex_a8_target_create(struct target_s *target, Jim_Interp *interp)
{
static int cortex_a8_target_create(struct target_s *target, Jim_Interp *interp)
{
- cortex_a8_common_t *cortex_a8 = calloc(1, sizeof(cortex_a8_common_t));
+ struct cortex_a8_common *cortex_a8 = calloc(1, sizeof(struct cortex_a8_common));
cortex_a8_init_arch_info(target, cortex_a8, target->tap);
cortex_a8_init_arch_info(target, cortex_a8, target->tap);
uint8_t WRPn;
} cortex_a8_wrp_t;
uint8_t WRPn;
} cortex_a8_wrp_t;
-typedef struct cortex_a8_common_s
{
int common_magic;
struct arm_jtag jtag_info;
{
int common_magic;
struct arm_jtag jtag_info;
int fast_reg_read;
struct armv7a_common armv7a_common;
int fast_reg_read;
struct armv7a_common armv7a_common;
-static inline struct cortex_a8_common_s *
+static inline struct cortex_a8_common *
target_to_cortex_a8(struct target_s *target)
{
target_to_cortex_a8(struct target_s *target)
{
- return container_of(target->arch_info, struct cortex_a8_common_s,
+ return container_of(target->arch_info, struct cortex_a8_common,
armv7a_common.armv4_5_common);
}
int cortex_a8_init_arch_info(target_t *target,
armv7a_common.armv4_5_common);
}
int cortex_a8_init_arch_info(target_t *target,
- cortex_a8_common_t *cortex_a8, struct jtag_tap *tap);
+ struct cortex_a8_common *cortex_a8, struct jtag_tap *tap);
Linking to existing account procedure
If you already have an account and want to add another login method
you
MUST first sign in with your existing account and
then change URL to read
https://review.openocd.org/login/?link
to get to this page again but this time it'll work for linking. Thank you.
SSH host keys fingerprints
1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=.. |
|+o.. . |
|*.o . . |
|+B . . . |
|Bo. = o S |
|Oo.+ + = |
|oB=.* = . o |
| =+=.+ + E |
|. .=o . o |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)