From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MCMmk-0001NP-0U for qemu-devel@nongnu.org; Thu, 04 Jun 2009 19:55:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MCMmf-0001K4-AP for qemu-devel@nongnu.org; Thu, 04 Jun 2009 19:55:49 -0400 Received: from [199.232.76.173] (port=52855 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCMQY-0006jX-KG for qemu-devel@nongnu.org; Thu, 04 Jun 2009 19:32:54 -0400 Received: from mx20.gnu.org ([199.232.41.8]:41660) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MCKe8-0005Ym-O6 for qemu-devel@nongnu.org; Thu, 04 Jun 2009 17:38:48 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MCKe5-0003e9-1o for qemu-devel@nongnu.org; Thu, 04 Jun 2009 17:38:45 -0400 From: Nathan Froyd Date: Thu, 4 Jun 2009 11:51:57 -0700 Message-Id: <1244141522-21802-3-git-send-email-froydnj@codesourcery.com> In-Reply-To: <1244141522-21802-1-git-send-email-froydnj@codesourcery.com> References: <1244141522-21802-1-git-send-email-froydnj@codesourcery.com> Subject: [Qemu-devel] [PATCH 2/7] target-ppc: fix cpu_clone_regs List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 --- 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