summaryrefslogtreecommitdiff
path: root/src/target/armv4_5.h
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-12-07 14:54:12 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-12-07 14:57:43 -0800
commit7b0314c377cc7c6a90db34d6d3e9e723d6d2b94a (patch)
tree30b5d55ebf10f8d802a5746533a178a39997c481 /src/target/armv4_5.h
parent7936ab16da93f91258e17e4699360dc3f43728ce (diff)
downloadopenocd+libswd-7b0314c377cc7c6a90db34d6d3e9e723d6d2b94a.tar.gz
openocd+libswd-7b0314c377cc7c6a90db34d6d3e9e723d6d2b94a.tar.bz2
openocd+libswd-7b0314c377cc7c6a90db34d6d3e9e723d6d2b94a.tar.xz
openocd+libswd-7b0314c377cc7c6a90db34d6d3e9e723d6d2b94a.zip
ARM: remove mrc_opcode(), use MRC() or MCR()
Get rid of mrc_opcode() in favor of ARMV4_5_MRC() or, where arm*20t should have used it, ARMV4_5_MCR() instead. Basically, *writing* coprocessor registers shouldn't have used the *read* opcode ... and both should stick to standard opcode constructors, not rearranging parameter sequence any more than already needed. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/armv4_5.h')
-rw-r--r--src/target/armv4_5.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/target/armv4_5.h b/src/target/armv4_5.h
index a93087e8..6e289337 100644
--- a/src/target/armv4_5.h
+++ b/src/target/armv4_5.h
@@ -379,16 +379,4 @@ extern struct reg arm_gdb_dummy_fps_reg;
*/
#define ARMV5_T_BKPT(Im) ((0xbe00 | Im) | ((0xbe00 | Im) << 16))
-/* build basic mrc/mcr opcode */
-
-static inline uint32_t mrc_opcode(int cpnum, uint32_t op1, uint32_t op2, uint32_t CRn, uint32_t CRm)
-{
- uint32_t t = 0;
- t|=op1<<21;
- t|=op2<<5;
- t|=CRn<<16;
- t|=CRm<<0;
- return t;
-}
-
#endif /* ARMV4_5_H */