]> git.sur5r.net Git - openocd/commit
ARM: move opcode macros to <target/arm_opcodes.h>
authorDavid Brownell <dbrownell@users.sourceforge.net>
Mon, 7 Dec 2009 22:54:12 +0000 (14:54 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Mon, 7 Dec 2009 22:57:43 +0000 (14:57 -0800)
commita4a2808c2a849eddd5d7d454c048ffdfd89ca9c6
tree25c8eccb1e9cfafdf61b1f6ed5dc940f24c489c6
parent7b0314c377cc7c6a90db34d6d3e9e723d6d2b94a
ARM: move opcode macros to <target/arm_opcodes.h>

Move the ARM opcode macros from <target/armv4_5.h>, and a few
Thumb2 ones from <target/armv7m.h>, to more appropriate homes
in a new <target/arm_opcodes.h> file.

Removed duplicate opcodes from that v7m/Thumb2 set.  Protected
a few macro argument references by adding missing parentheses.

Tightening up some of the line lengths turned up a curious artifact:
the macros for the Thumb opcodes are all 32 bits wide, not 16 bits.
There's currently no explanation for why it's done that way...

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
18 files changed:
src/flash/nor/lpc2000.c
src/target/arm11.c
src/target/arm720t.c
src/target/arm7tdmi.c
src/target/arm920t.c
src/target/arm926ejs.c
src/target/arm966e.c
src/target/arm9tdmi.c
src/target/arm_dpm.c
src/target/arm_opcodes.h [new file with mode: 0644]
src/target/armv4_5.h
src/target/armv7a.c
src/target/armv7m.h
src/target/cortex_a8.c
src/target/cortex_m3.c
src/target/fa526.c
src/target/feroceon.c
src/target/xscale.c