aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-08-23 19:32:41 +0000
committerJeff Law <law@redhat.com>1996-08-23 19:32:41 +0000
commitfb6da8680e8d15b3132e19e5b55f8cebbaa3b726 (patch)
treeda49176e7f67de56bd341e42ea6e5281fa28d8e1
parent1fa751362b92f0a41830c18689b6f9d9b5c87d69 (diff)
downloadgdb-fb6da8680e8d15b3132e19e5b55f8cebbaa3b726.zip
gdb-fb6da8680e8d15b3132e19e5b55f8cebbaa3b726.tar.gz
gdb-fb6da8680e8d15b3132e19e5b55f8cebbaa3b726.tar.bz2
* v850-opc.c (v850_opcodes): Get ld.[bhw] and st.[bhw]
correct. Get sld.[bhw] and sst.[bhw] closer.
-rw-r--r--opcodes/ChangeLog3
-rw-r--r--opcodes/v850-opc.c18
2 files changed, 12 insertions, 9 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 4ddc402..825f8f3 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,6 +1,9 @@
start-sanitize-v850
Fri Aug 23 00:27:01 1996 Jeffrey A Law (law@cygnus.com)
+ * v850-opc.c (v850_opcodes): Get ld.[bhw] and st.[bhw]
+ correct. Get sld.[bhw] and sst.[bhw] closer.
+
* v850-opc.c (v850_operands): "not" is a two byte insn
* v850-opc.c (v850_opcodes): Correct bit pattern for setf.
diff --git a/opcodes/v850-opc.c b/opcodes/v850-opc.c
index 2bb8c07..902b33c 100644
--- a/opcodes/v850-opc.c
+++ b/opcodes/v850-opc.c
@@ -129,19 +129,19 @@ const struct v850_operand v850_operands[] = {
const struct v850_opcode v850_opcodes[] = {
/* load/store instructions */
-{ "sld.b", OP(0x00), OP_MASK, IF4A, 2 },
-{ "sld.h", OP(0x00), OP_MASK, IF4C, 2 },
-{ "sld.w", OP(0x00), OP_MASK, IF4C, 2 },
+{ "sld.b", one(0x0300), one(0x0780), IF4A, 2 },
+{ "sld.h", one(0x0400), one(0x0780), IF4A, 2 },
+{ "sld.w", one(0x0500), one(0x0780), IF4A, 2 },
{ "sst.b", OP(0x00), OP_MASK, IF4B, 2 },
{ "sst.h", OP(0x00), OP_MASK, IF4D, 2 },
{ "sst.w", OP(0x00), OP_MASK, IF4D, 2 },
-{ "ld.b", OP(0x00), OP_MASK, IF7A, 4 },
-{ "ld.h", OP(0x00), OP_MASK, IF7A, 4 },
-{ "ld.w", OP(0x00), OP_MASK, IF7A, 4 },
-{ "st.b", OP(0x00), OP_MASK, IF7B, 4 },
-{ "st.h", OP(0x00), OP_MASK, IF7B, 4 },
-{ "st.w", OP(0x00), OP_MASK, IF7B, 4 },
+{ "ld.b", two(0x0700,0x0000), two (0x07e0,0x0000), IF7A, 4 },
+{ "ld.h", two(0x0720,0x0000), two (0x07e0,0x0001), IF7A, 4 },
+{ "ld.w", two(0x0720,0x0001), two (0x07e0,0x0001), IF7A, 4 },
+{ "st.b", two(0x0740,0x0000), two (0x07e0,0x0000), IF7B, 4 },
+{ "st.h", two(0x0760,0x0000), two (0x07e0,0x0001), IF7B, 4 },
+{ "st.w", two(0x0760,0x0001), two (0x07e0,0x0001), IF7B, 4 },
/* arithmetic operation instructions */
{ "mov", OP(0x00), OP_MASK, IF1, 2 },