diff mbox

[1/3] linux-user: Fix MIPS indirect syscall handling

Message ID 20110809193141.GB24592@debian.localdomain
State New
Headers show

Commit Message

An-Cheng Huang Aug. 9, 2011, 7:31 p.m. UTC
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: An-Cheng Huang <ancheng@ubnt.com>
---
 linux-user/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Peter Maydell Aug. 9, 2011, 8:37 p.m. UTC | #1
On 9 August 2011 20:31, An-Cheng Huang <ancheng@ubnt.com> wrote:
> 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: An-Cheng Huang <ancheng@ubnt.com>

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

-- PMM
diff mbox

Patch

diff --git a/linux-user/main.c b/linux-user/main.c
index 8e15474..cd6750b 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -1669,7 +1669,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)