summaryrefslogtreecommitdiff
path: root/packages/qemu/qemu-0.9.0+cvs20070613/33_syscall_ppc_clone.patch
blob: a71f8b19445cd451a9625b8b873c045ed4d6f998 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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];