aboutsummaryrefslogtreecommitdiff
path: root/sim/rx/rx.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2009-11-30 23:37:39 +0000
committerDJ Delorie <dj@redhat.com>2009-11-30 23:37:39 +0000
commit117f2c0dc4943ad8d5a64b6aa3f7b8da9dc12ed4 (patch)
tree001508b0a025148a9e16be5187a1af711816c0e6 /sim/rx/rx.c
parentc9c02ec31776f7dd9d6ed4d8b663507f69189458 (diff)
downloadgdb-117f2c0dc4943ad8d5a64b6aa3f7b8da9dc12ed4.zip
gdb-117f2c0dc4943ad8d5a64b6aa3f7b8da9dc12ed4.tar.gz
gdb-117f2c0dc4943ad8d5a64b6aa3f7b8da9dc12ed4.tar.bz2
* rx/rx.c (decode_opcode): fix SWHILE logic.
Diffstat (limited to 'sim/rx/rx.c')
-rw-r--r--sim/rx/rx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/rx/rx.c b/sim/rx/rx.c
index 888aa86..68329e2 100644
--- a/sim/rx/rx.c
+++ b/sim/rx/rx.c
@@ -1385,9 +1385,9 @@ decode_opcode ()
{
regs.r[3] --;
umb = mem_get_si (get_reg (1));
+ regs.r[1] += 4;
if (umb != uma)
break;
- regs.r[1] += 4;
}
break;
case RX_Word:
@@ -1396,9 +1396,9 @@ decode_opcode ()
{
regs.r[3] --;
umb = mem_get_hi (get_reg (1));
+ regs.r[1] += 2;
if (umb != uma)
break;
- regs.r[1] += 2;
}
break;
case RX_Byte:
@@ -1407,9 +1407,9 @@ decode_opcode ()
{
regs.r[3] --;
umb = mem_get_qi (regs.r[1]);
+ regs.r[1] += 1;
if (umb != uma)
break;
- regs.r[1] += 1;
}
break;
default: