aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2005-12-07 12:53:57 +0000
committerHans-Peter Nilsson <hp@axis.com>2005-12-07 12:53:57 +0000
commit1094df9f2d9e68f9792c3b57c531b3f613ca5ebc (patch)
tree409c9bfc6f3db6965118dcf21781507de8ac3da6
parent5a101414edb472bf71c0afe76c37dfc9f01f83b3 (diff)
downloadnewlib-1094df9f2d9e68f9792c3b57c531b3f613ca5ebc.zip
newlib-1094df9f2d9e68f9792c3b57c531b3f613ca5ebc.tar.gz
newlib-1094df9f2d9e68f9792c3b57c531b3f613ca5ebc.tar.bz2
* cris.h (MOVE_M_TO_PREG_OPCODE, MOVE_M_TO_PREG_ZBITS)
(MOVE_PC_INCR_OPCODE_PREFIX, MOVE_PC_INCR_OPCODE_SUFFIX): New macros. (ADD_PC_INCR_OPCODE): Don't define.
-rw-r--r--include/opcode/ChangeLog6
-rw-r--r--include/opcode/cris.h11
2 files changed, 15 insertions, 2 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog
index b257be4..8ec8340 100644
--- a/include/opcode/ChangeLog
+++ b/include/opcode/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-07 Hans-Peter Nilsson <hp@axis.com>
+
+ * cris.h (MOVE_M_TO_PREG_OPCODE, MOVE_M_TO_PREG_ZBITS)
+ (MOVE_PC_INCR_OPCODE_PREFIX, MOVE_PC_INCR_OPCODE_SUFFIX): New macros.
+ (ADD_PC_INCR_OPCODE): Don't define.
+
2005-12-06 H.J. Lu <hongjiu.lu@intel.com>
PR gas/1874
diff --git a/include/opcode/cris.h b/include/opcode/cris.h
index 81590ba..00ddde0 100644
--- a/include/opcode/cris.h
+++ b/include/opcode/cris.h
@@ -194,8 +194,15 @@ extern const char *const cris_cc_strings[];
#define JUMP_INDIR_Z_BITS (0xf2c0)
#define JUMP_PC_INCR_OPCODE \
(JUMP_INDIR_OPCODE + AUTOINCR_BIT * 0x0100 + REG_PC)
-#define ADD_PC_INCR_OPCODE \
- (0xfa00 + (2 << 4) + AUTOINCR_BIT * 0x0100 + REG_PC)
+
+#define MOVE_M_TO_PREG_OPCODE 0x0a30
+#define MOVE_M_TO_PREG_ZBITS 0x01c0
+
+/* BDAP.D N,PC. */
+#define MOVE_PC_INCR_OPCODE_PREFIX \
+ (((BDAP_INCR_HIGH | (REG_PC << 4)) << 8) | BDAP_PC_LOW | (2 << 4))
+#define MOVE_PC_INCR_OPCODE_SUFFIX \
+ (MOVE_M_TO_PREG_OPCODE | REG_PC | (AUTOINCR_BIT << 8))
#define JUMP_PC_INCR_OPCODE_V32 (0x0DBF)