summaryrefslogtreecommitdiff
path: root/packages/qemu/files/33_syscall_ppc_clone.patch
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2007-08-22 16:58:07 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2007-08-22 16:58:07 +0000
commit84a3b541b14fb54cb19d5144bc5be156b7f87721 (patch)
treee2ed34977d20c8b355230c49bace94c12b22bc0d /packages/qemu/files/33_syscall_ppc_clone.patch
parent81149649bc483149f0a959de43415cb4ff7aa0ba (diff)
qemu: added 20070613 version from Poky - this works on 32 and 64 bit machines
Diffstat (limited to 'packages/qemu/files/33_syscall_ppc_clone.patch')
-rw-r--r--packages/qemu/files/33_syscall_ppc_clone.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/qemu/files/33_syscall_ppc_clone.patch b/packages/qemu/files/33_syscall_ppc_clone.patch
new file mode 100644
index 0000000000..a71f8b1944
--- /dev/null
+++ b/packages/qemu/files/33_syscall_ppc_clone.patch
@@ -0,0 +1,22 @@
+#DPATCHLEVEL=0
+---
+# linux-user/syscall.c | 6 +-----
+# 1 file changed, 1 insertion(+), 5 deletions(-)
+#
+Index: linux-user/syscall.c
+===================================================================
+--- linux-user/syscall.c.orig 2007-06-13 11:51:54.000000000 +0100
++++ linux-user/syscall.c 2007-06-13 11:52:17.000000000 +0100
+@@ -2177,11 +2177,7 @@ int do_fork(CPUState *env, unsigned int
+ if (!newsp)
+ newsp = env->gpr[1];
+ new_env->gpr[1] = newsp;
+- {
+- int i;
+- for (i = 7; i < 32; i++)
+- new_env->gpr[i] = 0;
+- }
++ new_env->gpr[3] = 0;
+ #elif defined(TARGET_SH4)
+ if (!newsp)
+ newsp = env->gregs[15];