qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [patch] Arm syscall bug


From: Paul Brook
Subject: [Qemu-devel] [patch] Arm syscall bug
Date: Sat, 23 Apr 2005 16:31:09 +0100
User-agent: KMail/1.7.2

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;
                 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]