* [Qemu-devel] [patch] Arm syscall bug
@ 2005-04-23 15:31 Paul Brook
0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2005-04-23 15:31 UTC (permalink / raw)
To: qemu-devel
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-23 15:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-23 15:31 [Qemu-devel] [patch] Arm syscall bug Paul Brook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).