diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-05 21:59:45 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-05 21:59:45 -0800 |
commit | da739aa25733b5a252a2b0b8ad76a3dc886f1132 (patch) | |
tree | 9bde078183e994078843dac44efd909f49e8756f /src/target/armv7m.h | |
parent | db116b1ea3c77a3c5850fccbce9e0795faa21dda (diff) |
Cortex-M3: use the new inheritance/nesting scheme
Use new target_to_cm3() and target_to_armv7m() inlines,
instead of a series of x->arch_info conversions. Remove
arch_info, since nothing uses it.
Also fix an omission: the Cortex-M3 commands didn't verify
that they were operating on that kind of target. Add comment
about the ARMv7M version of that omission.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/armv7m.h')
-rw-r--r-- | src/target/armv7m.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/target/armv7m.h b/src/target/armv7m.h index 487d6fde..217f0e38 100644 --- a/src/target/armv7m.h +++ b/src/target/armv7m.h @@ -99,7 +99,6 @@ typedef struct armv7m_common_s int exception_number; swjdp_common_t swjdp_info; - /* Direct processor core register read and writes */ int (*load_core_reg_u32)(struct target_s *target, enum armv7m_regtype type, uint32_t num, uint32_t *value); int (*store_core_reg_u32)(struct target_s *target, enum armv7m_regtype type, uint32_t num, uint32_t value); @@ -112,8 +111,6 @@ typedef struct armv7m_common_s void (*pre_restore_context)(target_t *target); void (*post_restore_context)(target_t *target); - - void *arch_info; } armv7m_common_t; static inline struct armv7m_common_s * |