From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXznm-0007Kr-GI for qemu-devel@nongnu.org; Mon, 03 Aug 2009 11:50:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXzng-0007K6-Su for qemu-devel@nongnu.org; Mon, 03 Aug 2009 11:50:17 -0400 Received: from [199.232.76.173] (port=44674 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXzng-0007Jt-6M for qemu-devel@nongnu.org; Mon, 03 Aug 2009 11:50:12 -0400 Received: from mx20.gnu.org ([199.232.41.8]:50849) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MXznf-0006mN-U3 for qemu-devel@nongnu.org; Mon, 03 Aug 2009 11:50:11 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXznf-0004t9-4d for qemu-devel@nongnu.org; Mon, 03 Aug 2009 11:50:11 -0400 From: Nathan Froyd Date: Mon, 3 Aug 2009 08:43:23 -0700 Message-Id: <1249314209-10230-2-git-send-email-froydnj@codesourcery.com> In-Reply-To: <1249314209-10230-1-git-send-email-froydnj@codesourcery.com> References: <1249314209-10230-1-git-send-email-froydnj@codesourcery.com> Subject: [Qemu-devel] [PATCH 1/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 69c1d58..148e8c3 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -817,11 +817,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