aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1997-06-12 04:14:42 +0000
committerJeff Law <law@redhat.com>1997-06-12 04:14:42 +0000
commitc370b3cd95f7002f6c51266165caaeae4e6e1982 (patch)
treefe30b9b20097126e8971b20e8737893d761f4c6c /sim
parentf5d3fb7587e9edae76435e029b7325eb8adee465 (diff)
downloadgdb-c370b3cd95f7002f6c51266165caaeae4e6e1982.zip
gdb-c370b3cd95f7002f6c51266165caaeae4e6e1982.tar.gz
gdb-c370b3cd95f7002f6c51266165caaeae4e6e1982.tar.bz2
* simops.c: Fix thinko in last change.
Diffstat (limited to 'sim')
-rw-r--r--sim/mn10300/ChangeLog4
-rw-r--r--sim/mn10300/simops.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog
index 065fd93..8fb9861 100644
--- a/sim/mn10300/ChangeLog
+++ b/sim/mn10300/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jun 11 22:07:56 1997 Jeffrey A Law (law@cygnus.com)
+
+ * simops.c: Fix thinko in last change.
+
Tue Jun 10 12:31:32 1997 Jeffrey A Law (law@cygnus.com)
* simops.c: "call" stores the callee saved registers into the
diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c
index d92cc43..239936a 100644
--- a/sim/mn10300/simops.c
+++ b/sim/mn10300/simops.c
@@ -2652,7 +2652,7 @@ void OP_DD000000 (insn, extension)
}
/* Update the stack pointer. */
- State.regs[REG_SP] = sp - extension;
+ State.regs[REG_SP] = sp - (extension & 0xff);
State.regs[REG_MDR] = next_pc;
State.regs[REG_PC] += (((insn & 0xffffff) << 8) | ((extension & 0xff0000) >> 16)) - 7;
}