* simops.c (syscall): Handle new mn10300 calling conventions.
authorJeff Law <law@redhat.com>
Tue, 8 Apr 1997 06:01:20 +0000 (06:01 +0000)
committerJeff Law <law@redhat.com>
Tue, 8 Apr 1997 06:01:20 +0000 (06:01 +0000)
Forgot to check this in last week.

sim/mn10300/simops.c

index de9241e3108e72d18423f6c3b39314399011bdcf..27f6fda587ca9105f17b5a5607f9f83caad14bb4 100644 (file)
@@ -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))