From patchwork Fri Jun 17 06:36:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Gibson X-Patchwork-Id: 636812 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rW9v66LDLz9t21 for ; Fri, 17 Jun 2016 16:53:22 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.b=XYam0V3x; dkim-atps=neutral Received: from localhost ([::1]:54302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDnea-0007AX-PX for incoming@patchwork.ozlabs.org; Fri, 17 Jun 2016 02:53:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDnN2-0005b3-Q3 for qemu-devel@nongnu.org; Fri, 17 Jun 2016 02:35:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDnMx-0008DO-Cc for qemu-devel@nongnu.org; Fri, 17 Jun 2016 02:35:11 -0400 Received: from ozlabs.org ([103.22.144.67]:52711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDnMx-00088k-2L; Fri, 17 Jun 2016 02:35:07 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 3rW9Ts33Xwz9t1y; Fri, 17 Jun 2016 16:34:57 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1466145297; bh=DKYz0Pe2qezdOd0HGtXZ7LXjwBKpyDuEw9r0Eo8ql8I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XYam0V3xoZpaK7izYpW1lyMpDvqsKY5NyGqEgMYo0rCHE7XQKiTpnBHb+pwFTH3M7 vJMu1/iXsIBEnoglPxFsov8GE4XWHmiFnL77k8eZvZBvMtaWalbpstppY5XtTUsJDh GLiXF2S8Aixdmm0ayjxbZh6B7yiBR8bYvBhthmFE= From: David Gibson To: peter.maydell@linaro.org Date: Fri, 17 Jun 2016 16:36:24 +1000 Message-Id: <1466145399-32209-4-git-send-email-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1466145399-32209-1-git-send-email-david@gibson.dropbear.id.au> References: <1466145399-32209-1-git-send-email-david@gibson.dropbear.id.au> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 103.22.144.67 Subject: [Qemu-devel] [PULL 03/18] target-ppc: Bug in BookE wait instruction X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org, Jakub Horak , aik@ozlabs.ru, mdroth@linux.vnet.ibm.com, agraf@suse.de, qemu-ppc@nongnu.org, bharata@linux.vnet.ibm.com, imammedo@redhat.com, David Gibson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Jakub Horak Fixed bug in code generation for the PowerPC "wait" instruction. It doesn't make sense to store a non-initialized register. Signed-off-by: Jakub Horak [dwg: revised commit message] Signed-off-by: David Gibson --- target-ppc/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index b689475..1f401b7 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -3499,7 +3499,7 @@ static void gen_sync(DisasContext *ctx) /* wait */ static void gen_wait(DisasContext *ctx) { - TCGv_i32 t0 = tcg_temp_new_i32(); + TCGv_i32 t0 = tcg_const_i32(1); tcg_gen_st_i32(t0, cpu_env, -offsetof(PowerPCCPU, env) + offsetof(CPUState, halted)); tcg_temp_free_i32(t0);