From nobody Tue Feb 10 14:32:58 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.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=1622709618; cv=none; d=zohomail.com; s=zohoarc; b=Y899ssnm57U6pHuyUMH63+g8dzFrPJWQVHycfgZ2QTSragTxjS0aItoRBgDcpcgBz1+dCpYKlNbFT6zHIi/KzNsk3Piwt1QMhJf8tRqFO1HALiPIjUTqhTeY2PUk6XXR+Pb0gj8Ygp10Kj32/dijIhaUhVwn7Mvc1yqy2Aq66Ag= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622709618; 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; bh=Zbh65m3cukn5HSBUS4o2fNDHILWH2rkNHVIjJOrlWTg=; b=YOsBLvcScYsLqHpXb7R0CD8kceY0k2rWHHhH3qrXbDebMnQY/8Xw01arYGtqRowfNi/OJbT5ZNr98/2iVjg4kupvH0V+JqE7dF0TBakfwCj1Gk9YKqIq+lTU/cipkycLNSbInM9PSAKoBwQ6f12iNT5PbkXCUdnqV1dWUPAvJSg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.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 (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622709618769488.077402053131; Thu, 3 Jun 2021 01:40:18 -0700 (PDT) Received: from localhost ([::1]:49196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loitl-0007I3-Hj for importer@patchew.org; Thu, 03 Jun 2021 04:40:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loid8-0006kf-WC; Thu, 03 Jun 2021 04:23:09 -0400 Received: from bilbo.ozlabs.org ([2401:3900:2:1::2]:35139 helo=ozlabs.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loid7-00009x-1Q; Thu, 03 Jun 2021 04:23:06 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 4Fwf5n1SKFz9t0G; Thu, 3 Jun 2021 18:22:36 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1622708557; bh=htJwkmdEBbsymybJehM454Yf26ExzUBMxLyreHSRH2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l/sRccCTc8ByhO0/mzCSyVliU8ZK+i4PsYJiHv+PcrA0YVhBurkB6du9HJnTYVbuz cIf1rf0TVKmOg8GE2GslJ5d0A7XA1WFh1vj4s8BQheYz4l9h/2TK1x3hfvm96Fpttz dVwwYJiafwrG+WtyZUsbVXjkJ6+q30yd1Xou7Y7k= From: David Gibson To: peter.maydell@linaro.org, groug@kaod.org Subject: [PULL 22/42] target/ppc: removed GEN_OPCODE decision tree Date: Thu, 3 Jun 2021 18:22:11 +1000 Message-Id: <20210603082231.601214-23-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210603082231.601214-1-david@gibson.dropbear.id.au> References: <20210603082231.601214-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=2401:3900:2:1::2; envelope-from=dgibson@ozlabs.org; helo=ozlabs.org X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, David Gibson 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: "Bruno Larsen (billionai)" since both, PPC_DO_STATISTICS and PPC_DUMP_CPU, are obsoleted as target/ppc moves to decodetree, we can remove this ifdef based decision tree, and only have what is now the standard option for the macro. Signed-off-by: Bruno Larsen (billionai) Message-Id: <20210531145629.21300-4-bruno.larsen@eldorado.org.br> Reviewed-by: Richard Henderson Signed-off-by: David Gibson --- target/ppc/translate.c | 79 ------------------------------------------ 1 file changed, 79 deletions(-) diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 5c56e33c3c..4b66563998 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -1341,7 +1341,6 @@ typedef struct opcode_t { /*************************************************************************= ****/ /* PowerPC instructions table = */ =20 -#if defined(DO_PPC_STATISTICS) #define GEN_OPCODE(name, op1, op2, op3, invl, _typ, _typ2) = \ { = \ .opc1 =3D op1, = \ @@ -1353,7 +1352,6 @@ typedef struct opcode_t { .type =3D _typ, = \ .type2 =3D _typ2, = \ .handler =3D &gen_##name, = \ - .oname =3D stringify(name), = \ }, = \ .oname =3D stringify(name), = \ } @@ -1369,7 +1367,6 @@ typedef struct opcode_t { .type =3D _typ, = \ .type2 =3D _typ2, = \ .handler =3D &gen_##name, = \ - .oname =3D stringify(name), = \ }, = \ .oname =3D stringify(name), = \ } @@ -1384,7 +1381,6 @@ typedef struct opcode_t { .type =3D _typ, = \ .type2 =3D _typ2, = \ .handler =3D &gen_##name, = \ - .oname =3D onam, = \ }, = \ .oname =3D onam, = \ } @@ -1399,7 +1395,6 @@ typedef struct opcode_t { .type =3D _typ, = \ .type2 =3D _typ2, = \ .handler =3D &gen_##name, = \ - .oname =3D stringify(name), = \ }, = \ .oname =3D stringify(name), = \ } @@ -1414,83 +1409,9 @@ typedef struct opcode_t { .type =3D _typ, = \ .type2 =3D _typ2, = \ .handler =3D &gen_##name, = \ - .oname =3D onam, = \ }, = \ .oname =3D onam, = \ } -#else -#define GEN_OPCODE(name, op1, op2, op3, invl, _typ, _typ2) = \ -{ = \ - .opc1 =3D op1, = \ - .opc2 =3D op2, = \ - .opc3 =3D op3, = \ - .opc4 =3D 0xff, = \ - .handler =3D { = \ - .inval1 =3D invl, = \ - .type =3D _typ, = \ - .type2 =3D _typ2, = \ - .handler =3D &gen_##name, = \ - }, = \ - .oname =3D stringify(name), = \ -} -#define GEN_OPCODE_DUAL(name, op1, op2, op3, invl1, invl2, _typ, _typ2) = \ -{ = \ - .opc1 =3D op1, = \ - .opc2 =3D op2, = \ - .opc3 =3D op3, = \ - .opc4 =3D 0xff, = \ - .handler =3D { = \ - .inval1 =3D invl1, = \ - .inval2 =3D invl2, = \ - .type =3D _typ, = \ - .type2 =3D _typ2, = \ - .handler =3D &gen_##name, = \ - }, = \ - .oname =3D stringify(name), = \ -} -#define GEN_OPCODE2(name, onam, op1, op2, op3, invl, _typ, _typ2) = \ -{ = \ - .opc1 =3D op1, = \ - .opc2 =3D op2, = \ - .opc3 =3D op3, = \ - .opc4 =3D 0xff, = \ - .handler =3D { = \ - .inval1 =3D invl, = \ - .type =3D _typ, = \ - .type2 =3D _typ2, = \ - .handler =3D &gen_##name, = \ - }, = \ - .oname =3D onam, = \ -} -#define GEN_OPCODE3(name, op1, op2, op3, op4, invl, _typ, _typ2) = \ -{ = \ - .opc1 =3D op1, = \ - .opc2 =3D op2, = \ - .opc3 =3D op3, = \ - .opc4 =3D op4, = \ - .handler =3D { = \ - .inval1 =3D invl, = \ - .type =3D _typ, = \ - .type2 =3D _typ2, = \ - .handler =3D &gen_##name, = \ - }, = \ - .oname =3D stringify(name), = \ -} -#define GEN_OPCODE4(name, onam, op1, op2, op3, op4, invl, _typ, _typ2) = \ -{ = \ - .opc1 =3D op1, = \ - .opc2 =3D op2, = \ - .opc3 =3D op3, = \ - .opc4 =3D op4, = \ - .handler =3D { = \ - .inval1 =3D invl, = \ - .type =3D _typ, = \ - .type2 =3D _typ2, = \ - .handler =3D &gen_##name, = \ - }, = \ - .oname =3D onam, = \ -} -#endif =20 /* Invalid instruction */ static void gen_invalid(DisasContext *ctx) --=20 2.31.1