diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 08:45:37 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:12 -0800 |
commit | 1f87cf4e804812c81279cc7bcb0fcb86aa2bf48f (patch) | |
tree | 0fa72c6354d5b3439109f4ebb2923b72e2fd3000 /src/target/xscale.h | |
parent | ea34dc988f63ffa1a9ba9e592a65f2f46e78f82a (diff) | |
download | riscv-openocd-1f87cf4e804812c81279cc7bcb0fcb86aa2bf48f.zip riscv-openocd-1f87cf4e804812c81279cc7bcb0fcb86aa2bf48f.tar.gz riscv-openocd-1f87cf4e804812c81279cc7bcb0fcb86aa2bf48f.tar.bz2 |
xscale_common_t -> struct xscale_common
Remove misleading typedef and redundant suffix from struct xscale_common.
Diffstat (limited to 'src/target/xscale.h')
-rw-r--r-- | src/target/xscale.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/xscale.h b/src/target/xscale.h index a47bce7..63655ff 100644 --- a/src/target/xscale.h +++ b/src/target/xscale.h @@ -78,7 +78,7 @@ typedef struct xscale_trace_s armv4_5_state_t core_state; /* current core state (ARM, Thumb, Jazelle) */ } xscale_trace_t; -typedef struct xscale_common_s +struct xscale_common { /* armv4/5 common stuff */ armv4_5_common_t armv4_5_common; @@ -129,12 +129,12 @@ typedef struct xscale_common_s uint32_t cp15_control_reg; int fast_memory_access; -} xscale_common_t; +}; -static inline struct xscale_common_s * +static inline struct xscale_common * target_to_xscale(struct target_s *target) { - return container_of(target->arch_info, struct xscale_common_s, + return container_of(target->arch_info, struct xscale_common, armv4_5_common); } |