Received: from eggs.gnu.org ([140.186.70.92]:43926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qqs1m-0004h7-ST for qemu-devel@nongnu.org; Tue, 09 Aug 2011 15:31:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qqs1i-0000QN-UX for qemu-devel@nongnu.org; Tue, 09 Aug 2011 15:31:50 -0400 Received: from na3sys009aog101.obsmtp.com ([74.125.149.67]:39865) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Qqs1i-0000Q4-Gk for qemu-devel@nongnu.org; Tue, 09 Aug 2011 15:31:46 -0400 Received: by mail-yi0-f52.google.com with SMTP id 13so352434yie.11 for ; Tue, 09 Aug 2011 12:31:44 -0700 (PDT) Date: Tue, 9 Aug 2011 12:31:41 -0700 From: An-Cheng Huang Message-ID: <20110809193141.GB24592@debian.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH 1/3] linux-user: Fix MIPS indirect syscall handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, riku.voipio@iki.fi 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 --- linux-user/main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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) -- 1.7.2.5