X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fmips_m4k.h;h=4fe14a0d67b128f9e0a213494861a5bfb674bd0d;hb=465a06dfdc6c5d4af377dac7b9d71845cb0dc034;hp=a7c5bb3927a511e2687b6ce3d26a255978c84e41;hpb=0f1163e823c6ca3c2a81fa296157f5dde0635fea;p=openocd.git diff --git a/src/target/mips_m4k.h b/src/target/mips_m4k.h index a7c5bb3927..4fe14a0d67 100644 --- a/src/target/mips_m4k.h +++ b/src/target/mips_m4k.h @@ -23,7 +23,7 @@ #ifndef MIPS_M4K_H #define MIPS_M4K_H -#include "types.h" +#include struct target; @@ -35,6 +35,13 @@ struct mips_m4k_common struct mips32_common mips32_common; }; +static inline struct mips_m4k_common * +target_to_m4k(struct target *target) +{ + return container_of(target->arch_info, + struct mips_m4k_common, mips32_common); +} + int mips_m4k_bulk_write_memory(struct target *target, uint32_t address, uint32_t count, uint8_t *buffer);