* rx.c (decode_opcode): For "MVFC PC,", use the address of the

opcode, not the address following the opcode.
This commit is contained in:
DJ Delorie 2010-12-14 23:12:20 +00:00
parent 4b2826e7db
commit 29cfc22f89
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-12-14 DJ Delorie <dj@redhat.com>
* rx.c (decode_opcode): For "MVFC PC,", use the address of the
opcode, not the address following the opcode.
2010-11-11 DJ Delorie <dj@redhat.com>
* rx.c (lsb_count): New.

View File

@ -1379,6 +1379,14 @@ decode_opcode ()
case RXO_mov:
v = GS ();
if (opcode->op[1].type == RX_Operand_Register
&& opcode->op[1].reg == 17 /* PC */)
{
/* Special case. We want the address of the insn, not the
address of the next insn. */
v = opcode_pc;
}
if (opcode->op[0].type == RX_Operand_Register
&& opcode->op[0].reg == 16 /* PSW */)
{