From 29fb0f25303a76edb100362eaea59b6f74bdb823 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Tue, 9 Aug 2011 12:31:41 -0700 Subject: linux-user: Fix MIPS indirect syscall handling Change the number of argument for MIPS sys_syscall from 0 to 8. This allows arguments for indirect syscalls to be processed correctly. Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell Signed-off-by: An-Cheng Huang --- linux-user/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/main.c b/linux-user/main.c index 8910d2c49..3df91f388 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -1749,7 +1749,7 @@ void cpu_loop(CPUPPCState *env) #define MIPS_SYS(name, args) args, static const uint8_t mips_syscall_args[] = { - MIPS_SYS(sys_syscall , 0) /* 4000 */ + MIPS_SYS(sys_syscall , 8) /* 4000 */ MIPS_SYS(sys_exit , 1) MIPS_SYS(sys_fork , 0) MIPS_SYS(sys_read , 3) -- cgit v1.2.3