From nobody Tue Feb 10 09:10:41 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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=1622473613; cv=none; d=zohomail.com; s=zohoarc; b=eYXQRbp5K4+6pMzuQNT9LUya7QlviHOGImG2tGA1fA7P3IvLz+O/DuHahk2K3Ru1ryRJ0CGFojRrMvRpnzjyuCxMyR9m6ZW/4WbErDLyTtReuMKF6nPm0wR/qBOAWNvTrGYiYGKhpkTe9e3T8mxZxi1KaPKY/rsR05SBppBLs+8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622473613; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=gcVLXrM1+FNiak831IZtu2FRGNBcNtW4EeJc61wPitQ=; b=IQe2xRNepWkcc9buQ6yInvrzkRatKV7Zf8cO69TemIgUxX6T99qZaxFbtB2QGWPUbW5d2bxvLA67ByDlz3TfW6KIVyu4enVEoRe+hGlfuC0RPyFC63DO5EsFlNk6qbCQqD6TSX6K4RYbDibh0gWfA8MGU4mf5ZX5+md3Oh4vSNc= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 1622473613240510.60820870870725; Mon, 31 May 2021 08:06:53 -0700 (PDT) Received: from localhost ([::1]:56684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnjVE-0005Le-1Z for importer@patchew.org; Mon, 31 May 2021 11:06:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnjMR-0007VN-Qh; Mon, 31 May 2021 10:57:47 -0400 Received: from [201.28.113.2] (port=60167 helo=outlook.eldorado.org.br) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnjMQ-0001Ug-9K; Mon, 31 May 2021 10:57:47 -0400 Received: from power9a ([10.10.71.235]) by outlook.eldorado.org.br with Microsoft SMTPSVC(8.5.9600.16384); Mon, 31 May 2021 11:57:33 -0300 Received: from eldorado.org.br (unknown [10.10.71.235]) by power9a (Postfix) with ESMTP id EF153801481; Mon, 31 May 2021 11:57:32 -0300 (-03) From: "Bruno Larsen (billionai)" To: qemu-devel@nongnu.org Subject: [PATCH v3 3/4] target/ppc: removed GEN_OPCODE decision tree Date: Mon, 31 May 2021 11:56:28 -0300 Message-Id: <20210531145629.21300-4-bruno.larsen@eldorado.org.br> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210531145629.21300-1-bruno.larsen@eldorado.org.br> References: <20210531145629.21300-1-bruno.larsen@eldorado.org.br> X-OriginalArrivalTime: 31 May 2021 14:57:33.0149 (UTC) FILETIME=[492668D0:01D7562D] X-Host-Lookup-Failed: Reverse DNS lookup failed for 201.28.113.2 (failed) 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=201.28.113.2; envelope-from=bruno.larsen@eldorado.org.br; helo=outlook.eldorado.org.br X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=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: farosas@linux.ibm.com, richard.henderson@linaro.org, luis.pires@eldorado.org.br, Greg Kurz , lucas.araujo@eldorado.org.br, fernando.valle@eldorado.org.br, qemu-ppc@nongnu.org, matheus.ferst@eldorado.org.br, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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) --- 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.17.1