summaryrefslogtreecommitdiff
path: root/src/target/arm7_9_common.h
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-11-05 22:04:25 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-11-05 22:04:25 -0800
commit6a0af06bd9f66780d2c3e9f69c40f2b89ad90605 (patch)
tree82c3c0a0258d1e2548b8667bb13d4552ae973f31 /src/target/arm7_9_common.h
parent03ac53a2cfdb7d0715f7060cecf8719068f6fae1 (diff)
downloadopenocd+libswd-6a0af06bd9f66780d2c3e9f69c40f2b89ad90605.tar.gz
openocd+libswd-6a0af06bd9f66780d2c3e9f69c40f2b89ad90605.tar.bz2
openocd+libswd-6a0af06bd9f66780d2c3e9f69c40f2b89ad90605.tar.xz
openocd+libswd-6a0af06bd9f66780d2c3e9f69c40f2b89ad90605.zip
ARM: shrink offsets
Move various embedded target structs to the beginnings of their containers ... pretty much the way C++ or Obj-C would for single inheritance. This shrinks code that accesses those embedded structs by letting common offsets use smaller instructions. Sample before/after sizes (on amd64): 17181 312 0 17493 4455 arm920t.o 16810 312 0 17122 42e2 arm920t.o Where the "after" is the smaller number, with this patch over the ones leveraging that embedding knowledge. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/arm7_9_common.h')
-rw-r--r--src/target/arm7_9_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/arm7_9_common.h b/src/target/arm7_9_common.h
index 9eafc1d2..9c42b6b0 100644
--- a/src/target/arm7_9_common.h
+++ b/src/target/arm7_9_common.h
@@ -39,6 +39,7 @@
*/
typedef struct arm7_9_common_s
{
+ armv4_5_common_t armv4_5_common;
uint32_t common_magic;
arm_jtag_t jtag_info; /**< JTAG information for target */
@@ -107,7 +108,6 @@ typedef struct arm7_9_common_s
void (*pre_restore_context)(target_t *target); /**< Callback function called before restoring the processor context */
void (*post_restore_context)(target_t *target); /**< Callback function called after restoring the processor context */
- armv4_5_common_t armv4_5_common;
} arm7_9_common_t;