aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-03-27 20:17:02 +0000
committerNick Clifton <nickc@redhat.com>2000-03-27 20:17:02 +0000
commitba23e138c9c5214ead72b2599790256e3563591a (patch)
tree7f04fc6840cac320b69d1519869f88a255bdbff5
parent30b53638f1886caf84223a6d736b352ddb2b4975 (diff)
downloadgdb-ba23e138c9c5214ead72b2599790256e3563591a.zip
gdb-ba23e138c9c5214ead72b2599790256e3563591a.tar.gz
gdb-ba23e138c9c5214ead72b2599790256e3563591a.tar.bz2
Fix value of SHORT_A1.
Move SHORT_AR to end of list of short instructions.
-rw-r--r--include/opcode/ChangeLog6
-rw-r--r--include/opcode/d30v.h30
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/d30v-opc.c2
4 files changed, 27 insertions, 16 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog
index dd578a5..7452c2b 100644
--- a/include/opcode/ChangeLog
+++ b/include/opcode/ChangeLog
@@ -1,3 +1,9 @@
+2000-03-27 Nick Clifton <nickc@cygnus.com>
+
+ * d30v.h (SHORT_A1): Fix value.
+ (SHORT_AR): Renumber so that it is at the end of the list of short
+ instructions, not the end of the list of long instructions.
+
2000-03-26 Alan Modra <alan@linuxcare.com>
* i386.h: (UNIXWARE_COMPAT): Rename to SYSV386_COMPAT as the
diff --git a/include/opcode/d30v.h b/include/opcode/d30v.h
index 83ed43c..f90b7a4 100644
--- a/include/opcode/d30v.h
+++ b/include/opcode/d30v.h
@@ -101,7 +101,7 @@ struct d30v_opcode
#define SHORT_A5 36 /* SHORT_A with a 5-bit immediate instead of 6 */
#define SHORT_CMP 38 /* special form for CMPcc */
#define SHORT_CMPU 40 /* special form for CMPUcc */
-#define SHORT_A1 48 /* special form of SHORT_A for MACa opcodes where a=1 */
+#define SHORT_A1 42 /* special form of SHORT_A for MACa opcodes where a=1 */
#define SHORT_AA 44 /* SHORT_A with the first register an accumulator */
#define SHORT_RA 46 /* SHORT_A with the second register an accumulator */
#define SHORT_MODINC 48
@@ -111,20 +111,20 @@ struct d30v_opcode
#define SHORT_UF 52
#define SHORT_A2 53
#define SHORT_NONE 55 /* no operands */
-#define LONG 56
-#define LONG_U 57 /* unary LONG */
-#define LONG_Ur 58 /* LONG pc-relative */
-#define LONG_CMP 59 /* special form for CMPcc and CMPUcc */
-#define LONG_M 60 /* Memory long for ldb, stb */
-#define LONG_M2 61 /* Memory long for ld2w, st2w */
-#define LONG_2 62 /* LONG with 2 operands; jmptnz */
-#define LONG_2r 63 /* LONG with 2 operands; bratnz */
-#define LONG_2b 64 /* LONG_2 with modifier of 3 */
-#define LONG_2br 65 /* LONG_2r with modifier of 3 */
-#define LONG_D 66 /* for DJMPI*/
-#define LONG_Dr 67 /* for DBRAI*/
-#define LONG_Dbr 68 /* for repeati*/
-#define SHORT_AR 69 /* like SHORT_AA but only accept register as third parameter */
+#define SHORT_AR 56 /* like SHORT_AA but only accept register as third parameter */
+#define LONG 57
+#define LONG_U 58 /* unary LONG */
+#define LONG_Ur 59 /* LONG pc-relative */
+#define LONG_CMP 60 /* special form for CMPcc and CMPUcc */
+#define LONG_M 61 /* Memory long for ldb, stb */
+#define LONG_M2 62 /* Memory long for ld2w, st2w */
+#define LONG_2 63 /* LONG with 2 operands; jmptnz */
+#define LONG_2r 64 /* LONG with 2 operands; bratnz */
+#define LONG_2b 65 /* LONG_2 with modifier of 3 */
+#define LONG_2br 66 /* LONG_2r with modifier of 3 */
+#define LONG_D 67 /* for DJMPI */
+#define LONG_Dr 68 /* for DBRAI */
+#define LONG_Dbr 69 /* for repeati */
/* the execution unit(s) used */
int unit;
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 42c5fe2..eb2b278 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-27 Nick Clifton <nickc@cygnus.com>
+
+ * d30v-opc.c (d30v_format_table): Move SHORT_AR to end of list of
+ short instructions, from end of list of long instructions.
+
2000-03-27 Ian Lance Taylor <ian@zembu.com>
* Makefile.am (CFILES): Add avr-dis.c.
diff --git a/opcodes/d30v-opc.c b/opcodes/d30v-opc.c
index 4ba3ee4..2a33f44 100644
--- a/opcodes/d30v-opc.c
+++ b/opcodes/d30v-opc.c
@@ -468,6 +468,7 @@ const struct d30v_format d30v_format_table[] =
{ SHORT_A2, 0, { Ra2, Rb, Rc } }, /* Ra2,Rb,Rc */
{ SHORT_A2, 2, { Ra2, Rb, IMM6 } }, /* Ra2,Rb,imm6 */
{ SHORT_NONE, 0, { 0 } }, /* no operands (nop, reit) */
+ { SHORT_AR, 0, { Aa, Rb, Rc } }, /* Aa,Rb,Rc */
{ LONG, 2, { Ra, Rb, IMM32 } }, /* Ra,Rb,imm32 */
{ LONG_U, 2, { IMM32 } }, /* imm32 */
{ LONG_Ur, 2, { REL32 } }, /* rel32 */
@@ -481,7 +482,6 @@ const struct d30v_format d30v_format_table[] =
{ LONG_D, 2, { REL6S3, IMM32 } }, /* rel6s3,imm32 */
{ LONG_Dr, 2, { REL6S3, REL32 } }, /* rel6s3,rel32 */
{ LONG_Dbr, 2, { IMM6U, REL32 } }, /* imm6,rel32 */
- { SHORT_AR, 0, { Aa, Rb, Rc } }, /* Aa,Rb,Rc */
{ 0, 0, { 0 } },
};