From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DPMeV-0008Qn-2o for qemu-devel@nongnu.org; Sat, 23 Apr 2005 11:34:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DPMeT-0008Qb-Hn for qemu-devel@nongnu.org; Sat, 23 Apr 2005 11:34:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DPMeT-0008Hd-De for qemu-devel@nongnu.org; Sat, 23 Apr 2005 11:34:37 -0400 Received: from [65.74.133.9] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DPMe1-0006wa-Rk for qemu-devel@nongnu.org; Sat, 23 Apr 2005 11:34:10 -0400 From: Paul Brook Date: Sat, 23 Apr 2005 16:31:09 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504231631.10630.paul@codesourcery.com> Subject: [Qemu-devel] [patch] Arm syscall bug Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The arm-user syscall emulation always passes zero for the 6th syscall argument. This breaks the mmap2 syscall, and possibly others. Patch below fixes this. Paul Index: linux-user/main.c =================================================================== RCS file: /cvsroot/qemu/qemu/linux-user/main.c,v retrieving revision 1.63 diff -u -p -r1.63 main.c --- linux-user/main.c 17 Apr 2005 19:16:13 -0000 1.63 +++ linux-user/main.c 23 Apr 2005 15:25:32 -0000 @@ -373,7 +376,7 @@ void cpu_loop(CPUARMState *env) env->regs[2], env->regs[3], env->regs[4], - 0); + env->regs[5]); } else { goto error; }