aboutsummaryrefslogtreecommitdiff
path: root/opcodes/v850-opc.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-08-30 19:44:42 +0000
committerJeff Law <law@redhat.com>1996-08-30 19:44:42 +0000
commite9ebb364519260521af79ad2afaa5311bc10ad0c (patch)
treef6c67ffa791f27ea6f2e784747121998ca35ba8b /opcodes/v850-opc.c
parentba853302f2a7defddab5c4830d31faf8393101bc (diff)
downloadgdb-e9ebb364519260521af79ad2afaa5311bc10ad0c.zip
gdb-e9ebb364519260521af79ad2afaa5311bc10ad0c.tar.gz
gdb-e9ebb364519260521af79ad2afaa5311bc10ad0c.tar.bz2
* v850-opc.c (v850_operands): Define SR2 operand.
(v850_opcodes): "ldsr" uses R1,SR2. ldsr is kinda weird.
Diffstat (limited to 'opcodes/v850-opc.c')
-rw-r--r--opcodes/v850-opc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/opcodes/v850-opc.c b/opcodes/v850-opc.c
index c50023a..2bdbc83 100644
--- a/opcodes/v850-opc.c
+++ b/opcodes/v850-opc.c
@@ -83,6 +83,11 @@ const struct v850_operand v850_operands[] = {
/* The IMM16 field (unsigned0 in a format 6 insn. */
#define I16U (EP+1)
{ 16, 16, 0, 0, 0},
+
+/* The R2 field as a system register. */
+#define SR2 (I16U+1)
+ { 5, 11, 0, 0, V850_OPERAND_SRG },
+
} ;
@@ -234,7 +239,7 @@ const struct v850_opcode v850_opcodes[] = {
{ "halt", two(0x07e0,0x0120), two(0xffff,0xffff), {0}, 4 },
{ "reti", two(0x07e0,0x0140), two(0xffff,0xffff), {0}, 4 },
{ "trap", two(0x07e0,0x0100), two(0xffe0,0xffff), {I5U}, 4 },
-{ "ldsr", two(0x07e0,0x0020), two(0x07e0,0xffff), {R2,SR1}, 4 },
+{ "ldsr", two(0x07e0,0x0020), two(0x07e0,0xffff), {R1,SR2}, 4 },
{ "stsr", two(0x07e0,0x0040), two(0x07e0,0xffff), {SR1,R2}, 4 },
{ "nop", one(0x00), one(0xffff), {0}, 2 },
{ 0, 0, 0, {0}, 0 },