mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
(decode_opcode): RXO_branchrel is relative to the opcode's PC, not
the address following the opcode.
This commit is contained in:
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
* rx.c (decode_opcode): For "MVFC PC,", use the address of the
|
* rx.c (decode_opcode): For "MVFC PC,", use the address of the
|
||||||
opcode, not the address following the opcode.
|
opcode, not the address following the opcode.
|
||||||
|
(decode_opcode): RXO_branchrel is relative to the opcode's PC, not
|
||||||
|
the address following the opcode.
|
||||||
|
|
||||||
2010-11-11 DJ Delorie <dj@redhat.com>
|
2010-11-11 DJ Delorie <dj@redhat.com>
|
||||||
|
|
||||||
|
@ -1087,10 +1087,10 @@ decode_opcode ()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case RXO_branchrel:
|
case RXO_branchrel:
|
||||||
if (GS())
|
if (opcode->op[1].type == RX_Operand_None || GS())
|
||||||
{
|
{
|
||||||
int delta = GD();
|
int delta = GD();
|
||||||
regs.r_pc += delta;
|
regs.r_pc = opcode_pc + delta;
|
||||||
#ifdef CYCLE_ACCURATE
|
#ifdef CYCLE_ACCURATE
|
||||||
/* Note: specs say 3, chip says 2. */
|
/* Note: specs say 3, chip says 2. */
|
||||||
if (delta >= 0 && delta < 16
|
if (delta >= 0 && delta < 16
|
||||||
|
Reference in New Issue
Block a user