X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Ftarget%2Farm7_9_common.h;h=d86ac24dc92a50d7dc9602d59f185bbc5b6ada42;hb=db116b1ea3c77a3c5850fccbce9e0795faa21dda;hp=80f8fc74807d10812fed7e4b22dddc8d58b96cec;hpb=acff2521fb8e47dce4a2e89e2de77e71bf314047;p=openocd.git diff --git a/src/target/arm7_9_common.h b/src/target/arm7_9_common.h index 80f8fc7480..d86ac24dc9 100644 --- a/src/target/arm7_9_common.h +++ b/src/target/arm7_9_common.h @@ -112,6 +112,13 @@ typedef struct arm7_9_common_s } arm7_9_common_t; +static inline struct arm7_9_common_s * +target_to_arm7_9(struct target_s *target) +{ + return container_of(target->arch_info, struct arm7_9_common_s, + armv4_5_common); +} + int arm7_9_register_commands(struct command_context_s *cmd_ctx); int arm7_9_poll(target_t *target);