From nobody Wed Apr 8 02:52:02 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; dmarc=pass(p=none dis=none) header.from=nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1773201123; cv=none; d=zohomail.com; s=zohoarc; b=Se9BRsdY9exas9MELP0DAXTLJF3gPzD2HmtGmmChz3dwdCpRqW9J3eviXevDAUMpNDRM547TXw9/iXxtDKtM56oXlpZnIrvGhXG7UwrJAtIBA18Ssikn0wFQqCP5jTLtadSS653uXxZapQ9ne6pexNkepHraAlCnpL/BN53+buw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1773201123; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=+b8voobbRHB+fEzV3OFcGYw0x0PvxvjT9mR8Wf/yF+Q=; b=BKN8mxVyGb/VNX5hhZIRRGoMs7k8WsdR4Otho2OxXdXmDWjHwKpKvaHh0Mwq00ppxoWMrkFrcpPm1Jnqt/e7IO4b0ultRYMxIzeWkoGX/Pgi8AdNIEhLdU6CDRkYDXcerJKCN1NgucwpzjEoNpv9ODrCaTPcsmhMMV9x36QWuK4= 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1773201123640675.835878960737; Tue, 10 Mar 2026 20:52:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1w0AaI-00020M-BL; Tue, 10 Mar 2026 23:50:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1w0AZt-0001bg-C1 for qemu-devel@nongnu.org; Tue, 10 Mar 2026 23:49:45 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1w0AZp-0005DA-Lx for qemu-devel@nongnu.org; Tue, 10 Mar 2026 23:49:43 -0400 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62B0MxqJ1265877 for ; Wed, 11 Mar 2026 03:49:40 GMT Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ctpkfj63k-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 11 Mar 2026 03:49:40 +0000 (GMT) Received: by mail-ot1-f70.google.com with SMTP id 46e09a7af769-7d4c7afa9e0so124477459a34.0 for ; Tue, 10 Mar 2026 20:49:40 -0700 (PDT) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7d76ae39b39sm946430a34.15.2026.03.10.20.49.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2026 20:49:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= +b8voobbRHB+fEzV3OFcGYw0x0PvxvjT9mR8Wf/yF+Q=; b=affTIOvpr+RYjKre ICSdVjoWVsYvBIir7DJNIDTPldgKEHOpYki1tAvF4b4s1iEYOfe4GHcKoiTRnUVu vl47TbkzJ457f7Q5bGyb39LNxXRkGUxV2eVnFCkJ/ucUT85LTCbnUEJVIcaSGO6D OWJtqG5jTMHJS/SxSy6B5iGgShsWSPg2yZ3baO5IGdFqJ/ZJoiPy4a2HRaidB/Z2 YCIPPUnMbSEuxiGVlzmaZ1Fem9aJReQB56o0ltT2UqgKrRL1whg3/VwYlhCF4lRo JypTNbvqKI5L2iuWFFiFRT508aIHm0iW9MeIS1OoBRNYboPrdr03+Z2crBiUvq+R 9LmqeQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1773200979; x=1773805779; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+b8voobbRHB+fEzV3OFcGYw0x0PvxvjT9mR8Wf/yF+Q=; b=Vge35bob70bTCRUXk+ZHChkagGX4y6/9lh+d7cTwHst51zbdj60eCa5ZYMVf+91wK3 FcD/Fb+CH9gL5Q+cc6htVWsAIuCjwpEhbWuUBmqStxmtB3QtlYmYkNZNQcSKKKpFya9O EhXfXnN+9u8bgWOQ2cTM+8vGTOt5yqtSL0skcTikEImWw2a6j+4ktsq3SCVG5qIXmtah UfAdBcWegg6EjSOuhQhE9VRIkrufpZyKA9LvuApdW/7dVoH/eAXdi8vkeylXwtJSurKy z1KhknRCKwiFpwMlv3Eb5o/FVPtL/lsqZgSB3kucPtMAMXUnPMduGk3klDji9u3FmqGS jSmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773200979; x=1773805779; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=+b8voobbRHB+fEzV3OFcGYw0x0PvxvjT9mR8Wf/yF+Q=; b=ud/CfUFP2lII9jsaLNvmsacxp2KHtaOIlQjKuP/CPg4GfvJ4cFmFaHBllkCnrOdDfw wdABP5ceOdliQS9LUxYNg7OfEp90vLYmTT/m1hw1PrvmMh6N+mfEnXGqqTNtlc0K5eAe AfGpPvesYYfwWRXXtAcv+4Yw8WLHwbcDfjfrtAY6190PG781Q7HiMPMbsjuSLyvj2stE PguKheTFQN614cfivai5uVI2d4lF2VMTOnoR/XuI5ILQsRh7PvHZBm6Mm+8nz86Om6Ct xChKk42eoZPuearTkyAXhwJZHccvqe0vsESLq2BBXyJFlDSmqH9gddXX9IQvy0l9Ichs XwLg== X-Gm-Message-State: AOJu0YxaoRqb19dqRNKK7/VNWGVe7nNT4yUyw0ca1lU/cwMJM/1Zke/1 Mvv5gvPEBI1gdep2JzGFM9uV7FxgPUrZ0l+xu5ArtMy9rmf1IKtw0jf/cQW4/80AIU7UYpQ+ubq LbXXVHisjTEXbFcYGYmTDeRBz2oBYn9McSQ8gW3xZ9po31ZVXAztjyaYO3s1fHxItxw== X-Gm-Gg: ATEYQzyQNQpRSDKqPx58OS4KoNE1lUgpVQ7qsg6mYW6jjOzVhy3KspuZ/g3n+DMnKmr yntcamYWYJYnFmRTzkSetDpIkndUXD974S9lpogd90+Msk82iT78X0a4Bs7wteDawVqdkG/BEUu VUUWVqnu54GDdfgvY6YaBgVYWYoZHFCFmkHzXELp6xaq5uQdrRnEVTSSyTmjWXQ/q8mUqUMHVCd zwpParFtw+NwISw9b+7hdTEdZBJvD9v+Grc6+xvkOb9mvcFa5U0vHfKFeLprGSVl1/qS/CYBoOy KHtcuxvbph2onxZ6eRWZn6wINlwYGU8qfAueiKorABdeVC/+F4qkPQD9krza2Z73zEQDM5EF2N0 8ZQeYlOmtxsqrP96X4pRf558rckyfy6S9Oa8wnqLpfBlKG14FoTfF4+OjShAu1XOHduEKlg== X-Received: by 2002:a05:6830:82eb:b0:7cf:d201:c32d with SMTP id 46e09a7af769-7d76a6bd5afmr1005805a34.3.1773200978809; Tue, 10 Mar 2026 20:49:38 -0700 (PDT) X-Received: by 2002:a05:6830:82eb:b0:7cf:d201:c32d with SMTP id 46e09a7af769-7d76a6bd5afmr1005790a34.3.1773200978498; Tue, 10 Mar 2026 20:49:38 -0700 (PDT) To: qemu-devel@nongnu.org Cc: brian.cain@oss.qualcomm.com, philmd@linaro.org, ltaylorsimpson@gmail.com, matheus.bernardino@oss.qualcomm.com, marco.liebel@oss.qualcomm.com, quic_mburton@quicinc.com, sid.manning@oss.qualcomm.com, ale@rev.ng, anjo@rev.ng, Brian Cain Subject: [PATCH v5 08/35] target/hexagon: Switch to tag_ignore(), generate via get_{user, sys}_tags() Date: Tue, 10 Mar 2026 20:48:56 -0700 Message-Id: <20260311034923.1044737-9-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260311034923.1044737-1-brian.cain@oss.qualcomm.com> References: <20260311034923.1044737-1-brian.cain@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: SmoCe7o6fG5IgLH-mbOiibUmyB-RFiG7 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzExMDAyOSBTYWx0ZWRfX+nvPB/0TP8Ps cWPODiBjUPJ5/3tviEalnt9Nszg0xvg/fvP04j2XX2duxjUiUlA6SyIfIhajDkJrzqa5Bd9f9I/ BCFT/FQWZTM/7aaVbO7HZz8vqvSP34nkDVgm9EYtJRXgmiy7u2LH6N8F0VSMCRdhw/pBRtJOumO tcQ7JRCkNWcBUPzUyw512nKvRQOHLmcyn3sdMlkDmSIslCdFXzH9orouSK8QO8Vx800Gfr3lZvd fHDdW1c2rmzZ973J2XAfv43K2wcg9FfssaKzQquWXGpBfjvsPdi9XKtJUDrWahGz/Oc1AHCqlSM joL+RUUi0yoIhjjuawhyFmxfhkmzgNp7tw3h/9kjiVrA20EXBgiifNwPvo1/nsnAlomx7EoQ1Tz UpoNCDWQtODyBwtaTC2Bll2Nkyh1JPU68XQkpXd08mtGElsXr9S83s1ouxmsBdoOZSVRrj8nlo5 /yMrzrd4hVhQrcAIfgQ== X-Proofpoint-ORIG-GUID: SmoCe7o6fG5IgLH-mbOiibUmyB-RFiG7 X-Authority-Analysis: v=2.4 cv=Gq5PO01C c=1 sm=1 tr=0 ts=69b0e654 cx=c_pps a=7uPEO8VhqeOX8vTJ3z8K6Q==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=COk6AnOGAAAA:8 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=orAq0Iv1PZLbcfkgE-4A:9 a=QEXdDO2ut3YA:10 a=O8hF6Hzn-FEA:10 a=EXS-LbY8YePsIyqnH6vw:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-10_05,2026-03-09_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2602130000 definitions=main-2603110029 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=205.220.168.131; envelope-from=brian.cain@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.819, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.903, 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.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Brian Cain From: Brian Cain via qemu development Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZM-MESSAGEID: 1773201125075158500 From: Brian Cain Reviewed-by: Taylor Simpson Signed-off-by: Brian Cain --- target/hexagon/gen_helper_funcs.py | 26 ++++++++++--------------- target/hexagon/gen_helper_protos.py | 23 +++++++++++----------- target/hexagon/gen_idef_parser_funcs.py | 2 ++ target/hexagon/gen_op_attribs.py | 2 +- target/hexagon/gen_opcodes_def.py | 5 ++++- 5 files changed, 29 insertions(+), 29 deletions(-) diff --git a/target/hexagon/gen_helper_funcs.py b/target/hexagon/gen_helper= _funcs.py index 6206104424c..1629ebc0e1a 100755 --- a/target/hexagon/gen_helper_funcs.py +++ b/target/hexagon/gen_helper_funcs.py @@ -104,29 +104,23 @@ def main(): tagimms =3D hex_common.get_tagimms() =20 with open(args.out, "w") as f: - for tag in hex_common.tags: - ## Skip the priv instructions - if "A_PRIV" in hex_common.attribdict[tag]: - continue - ## Skip the guest instructions - if "A_GUEST" in hex_common.attribdict[tag]: - continue - ## Skip the floating point instructions - if "A_FPOP" in hex_common.attribdict[tag]: - continue - ## Skip the diag instructions - if tag =3D=3D "Y6_diag": - continue - if tag =3D=3D "Y6_diag0": - continue - if tag =3D=3D "Y6_diag1": + for tag in hex_common.get_user_tags(): + if hex_common.tag_ignore(tag): continue if hex_common.skip_qemu_helper(tag): continue if hex_common.is_idef_parser_enabled(tag): continue + gen_helper_function(f, tag, tagregs, tagimms) =20 + f.write("#if !defined(CONFIG_USER_ONLY)\n") + for tag in hex_common.get_sys_tags(): + if hex_common.skip_qemu_helper(tag): + continue + if hex_common.is_idef_parser_enabled(tag): + continue gen_helper_function(f, tag, tagregs, tagimms) + f.write("#endif\n") =20 =20 if __name__ =3D=3D "__main__": diff --git a/target/hexagon/gen_helper_protos.py b/target/hexagon/gen_helpe= r_protos.py index 77f8e0a6a32..59c8bdd05c0 100755 --- a/target/hexagon/gen_helper_protos.py +++ b/target/hexagon/gen_helper_protos.py @@ -59,27 +59,28 @@ def main(): tagimms =3D hex_common.get_tagimms() =20 with open(args.out, "w") as f: - for tag in hex_common.tags: - ## Skip the priv instructions - if "A_PRIV" in hex_common.attribdict[tag]: + for tag in hex_common.get_user_tags(): + if hex_common.tag_ignore(tag): continue - ## Skip the guest instructions - if "A_GUEST" in hex_common.attribdict[tag]: - continue - ## Skip the diag instructions - if tag =3D=3D "Y6_diag": - continue - if tag =3D=3D "Y6_diag0": + + if hex_common.skip_qemu_helper(tag): continue - if tag =3D=3D "Y6_diag1": + if hex_common.is_idef_parser_enabled(tag): continue =20 + gen_helper_prototype(f, tag, tagregs, tagimms) + + f.write("#if !defined(CONFIG_USER_ONLY)\n") + for tag in hex_common.get_sys_tags(): + if hex_common.tag_ignore(tag): + continue if hex_common.skip_qemu_helper(tag): continue if hex_common.is_idef_parser_enabled(tag): continue =20 gen_helper_prototype(f, tag, tagregs, tagimms) + f.write("#endif\n") =20 =20 if __name__ =3D=3D "__main__": diff --git a/target/hexagon/gen_idef_parser_funcs.py b/target/hexagon/gen_i= def_parser_funcs.py index 2f6e826f76d..32bce9b0028 100644 --- a/target/hexagon/gen_idef_parser_funcs.py +++ b/target/hexagon/gen_idef_parser_funcs.py @@ -60,6 +60,8 @@ def main(): f.write('#include "macros.h.inc"\n\n') =20 for tag in hex_common.tags: + if hex_common.tag_ignore(tag): + continue ## Skip the priv instructions if "A_PRIV" in hex_common.attribdict[tag]: continue diff --git a/target/hexagon/gen_op_attribs.py b/target/hexagon/gen_op_attri= bs.py index bbbb02df3a2..94dd1f876b2 100755 --- a/target/hexagon/gen_op_attribs.py +++ b/target/hexagon/gen_op_attribs.py @@ -38,7 +38,7 @@ def main(): ## Generate all the attributes associated with each instruction ## with open(args.out, "w") as f: - for tag in hex_common.tags: + for tag in hex_common.get_all_tags(): f.write( f"OP_ATTRIB({tag},ATTRIBS(" f'{",".join(sorted(hex_common.attribdict[tag]))}))\n' diff --git a/target/hexagon/gen_opcodes_def.py b/target/hexagon/gen_opcodes= _def.py index 94a19ff412e..17ba3f9db95 100755 --- a/target/hexagon/gen_opcodes_def.py +++ b/target/hexagon/gen_opcodes_def.py @@ -37,7 +37,10 @@ def main(): ## Generate a list of all the opcodes ## with open(args.out, "w") as f: - for tag in hex_common.tags: + for tag in hex_common.get_user_tags(): + f.write(f"OPCODE({tag}),\n") + + for tag in hex_common.get_sys_tags(): f.write(f"OPCODE({tag}),\n") =20 =20 --=20 2.34.1