From nobody Tue Feb 10 03:38:02 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) 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=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1559113128; cv=none; d=zoho.com; s=zohoarc; b=m+M151ix+2NCupv8W2Dz+btES+HUZ+B2c+aa70r2nDqgasDT5etUwN92fgKo9ID9Cw2PFwUIK40B0iR2o2GdxTmPlSQlL6RdKupsV8t2lFcVueb15gNA8319J1g83TVv2XcQzJU8jGnuvy7Iurf5qP4CUckOZww1SSu9Is7vuAc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559113128; 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=c8WgBhu72d1iifu3TwUXmvpyTFAxhOC9jwnPuNrz8Q8=; b=bL6RHQRO+T5MT0T6+wTIUuctptCmIJmh4EVz7u5yF41AbJvbidN978/3iL/N6XrGUGglPoFszPPzptIauQ64zLhlb/mStA8SfsUn5acl/9FseD+CkywJKfLRVLNNwj7qHFAbQmZ/kamv2g5Drs9ndT3vu9O6k11GNODUQlgd8H0= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) 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 1559113128291573.608366876238; Tue, 28 May 2019 23:58:48 -0700 (PDT) Received: from localhost ([127.0.0.1]:48461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVsXo-0006l8-T0 for importer@patchew.org; Wed, 29 May 2019 02:58:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVsQ4-0008JU-Ps for qemu-devel@nongnu.org; Wed, 29 May 2019 02:50:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVsQ3-0002d3-2y for qemu-devel@nongnu.org; Wed, 29 May 2019 02:50:40 -0400 Received: from ozlabs.org ([203.11.71.1]:37433) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVsQ2-0002aE-MR; Wed, 29 May 2019 02:50:38 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 45DLv40w8Hz9sP6; 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=1559112624; bh=q7EImbd+kCVeaNJFxTgkqCNMD8+yJyoKHqONDrvQuek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ntA/XQ9MVcZ2jZoF+XtVspD2S/lvrapatqW5sLywTbVT0Te7HBgh4s0YETf79Yzgc qp3xnF9WHixaUoO6Jy+Gt32N31jVcfFbh/MQUG2+qagxGePIQ7TrjRF44B5ccW0nt8 6c1qrHiErVQPep4cA91KCCZymDh9uKIy7CZydXJY= From: David Gibson To: peter.maydell@linaro.org Date: Wed, 29 May 2019 16:49:46 +1000 Message-Id: <20190529065017.15149-14-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 13/44] target/ppc: Fix xxspltib 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 xxspltib raises a VMX or a VSX exception depending on the register set it is operating on. We had a check, but it was backwards. Fixes: f113283525a4 ("target-ppc: add xxspltib instruction") Signed-off-by: Anton Blanchard Message-Id: <20190509061713.69490488@kryten> Signed-off-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/ppc/translate/vsx-impl.inc.c b/target/ppc/translate/vsx= -impl.inc.c index d29f60e2f9..4b8f6cefe3 100644 --- a/target/ppc/translate/vsx-impl.inc.c +++ b/target/ppc/translate/vsx-impl.inc.c @@ -1355,13 +1355,13 @@ static void gen_xxspltib(DisasContext *ctx) int rt =3D xT(ctx->opcode); =20 if (rt < 32) { - if (unlikely(!ctx->altivec_enabled)) { - gen_exception(ctx, POWERPC_EXCP_VPU); + if (unlikely(!ctx->vsx_enabled)) { + gen_exception(ctx, POWERPC_EXCP_VSXU); return; } } else { - if (unlikely(!ctx->vsx_enabled)) { - gen_exception(ctx, POWERPC_EXCP_VSXU); + if (unlikely(!ctx->altivec_enabled)) { + gen_exception(ctx, POWERPC_EXCP_VPU); return; } } --=20 2.21.0