From nobody Mon Feb 9 22:37:52 2026 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1559113497; cv=none; d=zoho.com; s=zohoarc; b=To4RKf2cM3HNUjwo1w7627lIZVK8+Ynr73/o9ftVs8kVn2b8i0JyeU0PV4MV6qB1YycUTJXdmafkMfTQ5kJqpGr018Aalo79vsm1WnCxQkznGQqqdCEdipHi+SKRY5i+M8PT8990czeadwDEPS0mlFAiDSCAYsY0IELsyQwxKxM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559113497; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=lmpkJ4iIMARLfsuZbdaLnEpQhotlVeRBqFfGarMcAEc=; b=Z4hQxHwhyUzLUaXNnM4KUo7wHLsm0Antyi0GEvQdWT1BgRMgBWSkqC6aCAsI25C/dPSCe0P/MPdMCy8WlvcXYFVSm+uhTOUAmt3gs+BL6zFH8GGLxug/fmmofo09vaDR8abqradandDYZv/lcCsck/G09d1jKAhD0C1i6lTTL7Q= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1559113497032496.5694816451587; Wed, 29 May 2019 00:04:57 -0700 (PDT) Received: from localhost ([127.0.0.1]:48553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVsdk-0003AN-1X for importer@patchew.org; Wed, 29 May 2019 03:04:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVsQ0-0008Dz-Ov for qemu-devel@nongnu.org; Wed, 29 May 2019 02:50:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVsPz-0002YT-N6 for qemu-devel@nongnu.org; Wed, 29 May 2019 02:50:36 -0400 Received: from ozlabs.org ([203.11.71.1]:56715) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVsPz-0002Wf-Ci; Wed, 29 May 2019 02:50:35 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 45DLv25Pvxz9sNw; Wed, 29 May 2019 16:50:22 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1559112622; bh=6umsziP45kqLQbkhjysqubHMINrd6dPk0OGV7I94jHo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vxm792M3Oxxq7aJN0Az+D7wgNohp5fRdae5mqcVSgNPY7f87jmGqe0evITq1+93zS v9DadtxT2l/v0njho7OnBY9pKzJ4j0oDjLQ+jrIliwMEc5XLT/XkmIMOLzN1IPz+mj 024b5iJgv3MA68nPqs5YAi4ALA4l3hPwgDaus3XE= From: David Gibson To: peter.maydell@linaro.org Date: Wed, 29 May 2019 16:49:43 +1000 Message-Id: <20190529065017.15149-11-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190529065017.15149-1-david@gibson.dropbear.id.au> References: <20190529065017.15149-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 203.11.71.1 Subject: [Qemu-devel] [PULL 10/44] target/ppc: Fix xxbrq, xxbrw 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: lvivier@redhat.com, qemu-devel@nongnu.org, groug@kaod.org, qemu-ppc@nongnu.org, clg@kaod.org, David Gibson , Anton Blanchard , rth@twiddle.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Anton Blanchard Fix a typo in xxbrq and xxbrw where we put both results into the lower doubleword. Fixes: 8b3b2d75c7c0 ("introduce get_cpu_vsr{l,h}() and set_cpu_vsr{l,h}() h= elpers for VSR register access") Signed-off-by: Anton Blanchard Message-Id: <20190507004811.29968-3-anton@ozlabs.org> Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/ppc/translate/vsx-impl.inc.c b/target/ppc/translate/vsx= -impl.inc.c index 4d8ca7cf32..d29f60e2f9 100644 --- a/target/ppc/translate/vsx-impl.inc.c +++ b/target/ppc/translate/vsx-impl.inc.c @@ -1192,7 +1192,7 @@ static void gen_xxbrq(DisasContext *ctx) tcg_gen_bswap64_i64(xtl, xbh); set_cpu_vsrl(xT(ctx->opcode), xtl); tcg_gen_mov_i64(xth, t0); - set_cpu_vsrl(xT(ctx->opcode), xth); + set_cpu_vsrh(xT(ctx->opcode), xth); =20 tcg_temp_free_i64(t0); tcg_temp_free_i64(xth); @@ -1220,7 +1220,7 @@ static void gen_xxbrw(DisasContext *ctx) get_cpu_vsrl(xbl, xB(ctx->opcode)); =20 gen_bswap32x4(xth, xtl, xbh, xbl); - set_cpu_vsrl(xT(ctx->opcode), xth); + set_cpu_vsrh(xT(ctx->opcode), xth); set_cpu_vsrl(xT(ctx->opcode), xtl); =20 tcg_temp_free_i64(xth); --=20 2.21.0