aboutsummaryrefslogtreecommitdiff
path: root/sim
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
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')
-rw-r--r--sim/rx/ChangeLog4
-rw-r--r--sim/rx/rx.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog
index 8f103df..67b8958 100644
--- a/sim/rx/ChangeLog
+++ b/sim/rx/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-30 DJ Delorie <dj@redhat.com>
+
+ * rx/rx.c (decode_opcode): fix SWHILE logic.
+
2009-10-27 DJ Delorie <dj@redhat.com>
Kevin Buettner <kevinb@redhat.com>
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: