* rx.c (decode_opcode): For "MVFC PC,", use the address of the
opcode, not the address following the opcode.
This commit is contained in:
parent
4b2826e7db
commit
29cfc22f89
2 changed files with 13 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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 */)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue