qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 2/7] target-ppc: fix cpu_clone_regs


From: Nathan Froyd
Subject: [Qemu-devel] [PATCH 2/7] target-ppc: fix cpu_clone_regs
Date: Thu, 4 Jun 2009 11:51:57 -0700

We only need to make sure that the clone syscall looks like it
succeeded, not clobber 60% of the register set.

Signed-off-by: Nathan Froyd <address@hidden>
---
 target-ppc/cpu.h |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h
index 0e8b49f..f977168 100644
--- a/target-ppc/cpu.h
+++ b/target-ppc/cpu.h
@@ -818,11 +818,9 @@ static inline int cpu_mmu_index (CPUState *env)
 #if defined(CONFIG_USER_ONLY)
 static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
 {
-    int i;
     if (newsp)
         env->gpr[1] = newsp;
-    for (i = 7; i < 32; i++)
-        env->gpr[i] = 0;
+    env->gpr[3] = 0;
 }
 #endif
 
-- 
1.6.3.2





reply via email to

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