summaryrefslogtreecommitdiff
path: root/src/target/mips_m4k.h
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-01-08 22:35:08 +0000
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-01-09 13:37:02 +0000
commit70738bd75dbc122e380ff3288542ac4e73700eed (patch)
tree29590df30abf8a6d7dc8f2c2315560a5afdad96f /src/target/mips_m4k.h
parentfc9a2d0e6f3270dc86f84749ad10dd79d97c8392 (diff)
downloadopenocd+libswd-70738bd75dbc122e380ff3288542ac4e73700eed.tar.gz
openocd+libswd-70738bd75dbc122e380ff3288542ac4e73700eed.tar.bz2
openocd+libswd-70738bd75dbc122e380ff3288542ac4e73700eed.tar.xz
openocd+libswd-70738bd75dbc122e380ff3288542ac4e73700eed.zip
MIPS: update arch_info access to match other targets
- add target_to_mips32 and target_to_m4k to match test of codebase. - mips32_arch_state now shows if processer is running mips16e isa. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src/target/mips_m4k.h')
-rw-r--r--src/target/mips_m4k.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/target/mips_m4k.h b/src/target/mips_m4k.h
index c5f9be2b..4fe14a0d 100644
--- a/src/target/mips_m4k.h
+++ b/src/target/mips_m4k.h
@@ -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);