aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1997-04-08 06:01:20 +0000
committerJeff Law <law@redhat.com>1997-04-08 06:01:20 +0000
commit81f13ed1f306a0e952d1ee37109f568bcc1768fa (patch)
treea205ba7f4340450fffc1105fdb238a5da88bd564
parent3ac09675e8882bb45fad52ce0a74f1267339180f (diff)
downloadgdb-81f13ed1f306a0e952d1ee37109f568bcc1768fa.zip
gdb-81f13ed1f306a0e952d1ee37109f568bcc1768fa.tar.gz
gdb-81f13ed1f306a0e952d1ee37109f568bcc1768fa.tar.bz2
* simops.c (syscall): Handle new mn10300 calling conventions.
Forgot to check this in last week.
-rw-r--r--sim/mn10300/simops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c
index de9241e..27f6fda 100644
--- a/sim/mn10300/simops.c
+++ b/sim/mn10300/simops.c
@@ -2894,10 +2894,10 @@ void OP_F020 (insn, extension)
/* Registers passed to trap 0 */
/* Function number. */
-#define FUNC (load_mem (State.regs[REG_SP] + 4, 4))
+#define FUNC (State.regs[0])
/* Parameters. */
-#define PARM1 (load_mem (State.regs[REG_SP] + 8, 4))
+#define PARM1 (State.regs[1])
#define PARM2 (load_mem (State.regs[REG_SP] + 12, 4))
#define PARM3 (load_mem (State.regs[REG_SP] + 16, 4))