From: Jeff Law Date: Tue, 8 Apr 1997 06:01:20 +0000 (+0000) Subject: * simops.c (syscall): Handle new mn10300 calling conventions. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81f13ed1f306a0e952d1ee37109f568bcc1768fa;p=binutils-gdb.git * simops.c (syscall): Handle new mn10300 calling conventions. Forgot to check this in last week. --- diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c index de9241e3108..27f6fda587c 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))