{"id":2224707,"url":"http://patchwork.ozlabs.org/api/1.2/patches/2224707/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260417194606.39997-2-pierrick.bouvier@oss.qualcomm.com/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.2/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260417194606.39997-2-pierrick.bouvier@oss.qualcomm.com>","list_archive_url":null,"date":"2026-04-17T19:46:05","name":"[1/2] target/hexagon/meson.build: simplify decodetree file generation","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"08f601dc1ebc2611e23e2314a4c77e758a800060","submitter":{"id":93152,"url":"http://patchwork.ozlabs.org/api/1.2/people/93152/?format=json","name":"Pierrick Bouvier","email":"pierrick.bouvier@oss.qualcomm.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260417194606.39997-2-pierrick.bouvier@oss.qualcomm.com/mbox/","series":[{"id":500397,"url":"http://patchwork.ozlabs.org/api/1.2/series/500397/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=500397","date":"2026-04-17T19:46:04","name":"target/hexagon: simply meson.build","version":1,"mbox":"http://patchwork.ozlabs.org/series/500397/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2224707/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2224707/checks/","tags":{},"related":[],"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=g5MBlvAY;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=Ocl65r4t;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fy54Z70KSz1yJ8\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 18 Apr 2026 05:47:09 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wDp8y-0005ap-0e; Fri, 17 Apr 2026 15:46:24 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <pierrick.bouvier@oss.qualcomm.com>)\n id 1wDp8v-0005a8-6D\n for qemu-devel@nongnu.org; Fri, 17 Apr 2026 15:46:21 -0400","from mx0a-0031df01.pphosted.com ([205.220.168.131])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <pierrick.bouvier@oss.qualcomm.com>)\n id 1wDp8s-0000YR-FL\n for qemu-devel@nongnu.org; Fri, 17 Apr 2026 15:46:20 -0400","from pps.filterd (m0279864.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63HG4SJq2945226\n for <qemu-devel@nongnu.org>; Fri, 17 Apr 2026 19:46:16 GMT","from mail-dl1-f71.google.com (mail-dl1-f71.google.com\n [74.125.82.71])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dkdgy33q9-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <qemu-devel@nongnu.org>; Fri, 17 Apr 2026 19:46:16 +0000 (GMT)","by mail-dl1-f71.google.com with SMTP id\n a92af1059eb24-12bf921cf49so1174810c88.1\n for <qemu-devel@nongnu.org>; Fri, 17 Apr 2026 12:46:16 -0700 (PDT)","from QCOM-qjMf8PBlDw.qualcomm.com (216-71-219-44.dyn.novuscom.net.\n [216.71.219.44]) by smtp.gmail.com with ESMTPSA id\n a92af1059eb24-12c749d29f3sm4634325c88.5.2026.04.17.12.46.13\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 17 Apr 2026 12:46:14 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n cc:content-transfer-encoding:date:from:in-reply-to:message-id\n :mime-version:references:subject:to; s=qcppdkim1; bh=t/IaNMz0/ou\n P9Lh56eKStXQsx4b7fRQ1h6cw0izNVyc=; b=g5MBlvAYFHRq/MT4ljo0XObFDq8\n WNlPRKp/rBSF9G/3m57Dxem/lcdGRs4Jt0Arj6L/pKzf7shyvyRnnxl1DoiXV0jO\n +uLZk4IqQHSxZmRFJuu6QYp8ot+TtuL+sr5v5weZc2qVf5gdCpHjGPozK0HwvDvu\n 3on0mBQVYKPuw6Vz5VSPMAE2EYa1F7fD6XGRCD1TzScjOlfPYJWbS6/oP0dRsLu0\n KS3a7HkZAv72dyN0r3aRragGi+F/whQ0ZrLt9gxFx6BJoom3vpqX9mnbLBCgnQwr\n moEvhwi8/+BE7boY2QIzMb5qVaUIu0kos7+ZN7uVdYLT4MQrQHDs3cUZ4sA==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1776455176; x=1777059976; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=t/IaNMz0/ouP9Lh56eKStXQsx4b7fRQ1h6cw0izNVyc=;\n b=Ocl65r4thph00i8FJkryAtIHUtDHW7KA1IpNA7tiZUKzdzNs6knN3jzebnqhUYa7jV\n ayKLRfiEBGwDyoHEE7n0gXU8LkS5KXHp1MCvFjtJsze2i4yELt0CmeMjX8SdMv7Cr2px\n iApq89GGJsKyZFn9aYDUkkmQUYSAfJ6AKaAv20m2POfUn96dzdIYG8dd8tITvpdncNh3\n M8P7P45B+xTzal/xxTOH9v0rj5vimN3JmVQbxRyDm3GuD4m4IKZxV2Oi+0Yb4OAyYNNH\n nlXf5LVbRKiOHCzZ43mbFFNLxkOnZMHV96oG9Dclh8630gajoM6CSBioRFkx+SOYODQ5\n C1DA=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776455176; x=1777059976;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=t/IaNMz0/ouP9Lh56eKStXQsx4b7fRQ1h6cw0izNVyc=;\n b=Y5eFgjExmOvohD0uZ47IJCS7m2qn+T36CJFd7MWhnhk85sniRPuTpJ1JwAh+PKVo2L\n r2BXQ1y/mD8J6nHdbOsO+wTY2/oCMZjh6VpDgH6RzHTVyGIsLPNwHI6WjQhJJdnOyxdB\n LYCqBZe8iOVKFyYJaqBCPSzSeNVIgUvV2VZh7AKCtHHQqZ86WfJQIeB4DOLp2ipA6nSN\n oQ39hLVIhDsomczzCt5xtJh3tExuXnTKK88euLbXG61WagbCDb7sjX6OI9q2WP/T3gvN\n DFBvJHZL/eaKpSsmYr8P56D7NFARMV6kZp9i4TlJi3oum4DZqZCgF3FBtr+YnNs0Ihe7\n umiQ==","X-Gm-Message-State":"AOJu0YwU2DCxKBKKUuxi4MCVRZP/p5+xIi8GcoP/ZS7cMHphPD08273p\n 3COzfglvXFRABbI5y5QSZ9/Wbpvz7LbGBv7FGbELH2lXf1JQ9CducuPXr0sFwFO1QLQqG5maNqd\n M3/pvNhnQkY77VuVA4/HUOCh5zX6ShzK2PFWx+fmrntDTbflgXyPGerWzvFY5kKREFw==","X-Gm-Gg":"AeBDievRQtdFgkTW/+IX+zlZyCJLPjziBU2mxwDo4hVee5ODxw/DmioiyGt7+L6GOkT\n LhC9/xmTPTbXI20dyIFx3IJGpBwghWsH0I/WXPlJDyYr4egwds5jQA7C1Yrg6EGegITMt2jkfqB\n rto7JKK/Q96qKhL/zmxFB0TcnJwcJ6+EFUIeT9x9w5Fo7SX0kU+yMqd/a0NyHe1prVAoLSiug4j\n Sb6weHcu+HDYADfPsgqhkU83KKIg6UJhYJwlskDGCE/8+HoJLPmdIQfAaflaToNP/SjCeEr5A5e\n V/uXngE5NGs8gQqfVvXFJ9vnHIhqYVhYWKmm6JcXkEykfNDqeC0etJN8wus8bEQJWCS/EBYmz6f\n jmNRkNdqlTk0aqHl18JKEeJrGAu4YfQez591iOxIxitOE7QNEl/1KyWQ+a2gvNU4chlnDx/X1mm\n A0x4DMSldOSx/rE9IbRowv4JWj7FE=","X-Received":["by 2002:a05:7022:60f:b0:12b:ed30:5a32 with SMTP id\n a92af1059eb24-12c73f6e183mr1917089c88.5.1776455175443;\n Fri, 17 Apr 2026 12:46:15 -0700 (PDT)","by 2002:a05:7022:60f:b0:12b:ed30:5a32 with SMTP id\n a92af1059eb24-12c73f6e183mr1917059c88.5.1776455174624;\n Fri, 17 Apr 2026 12:46:14 -0700 (PDT)"],"From":"Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>","To":"qemu-devel@nongnu.org","Cc":"Brian Cain <brian.cain@oss.qualcomm.com>,\n matheus.bernardino@oss.qualcomm.com,\n Marco Liebel <marco.liebel@oss.qualcomm.com>,\n Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>","Subject":"[PATCH 1/2] target/hexagon/meson.build: simplify decodetree file\n generation","Date":"Fri, 17 Apr 2026 12:46:05 -0700","Message-ID":"<20260417194606.39997-2-pierrick.bouvier@oss.qualcomm.com>","X-Mailer":"git-send-email 2.47.3","In-Reply-To":"<20260417194606.39997-1-pierrick.bouvier@oss.qualcomm.com>","References":"<20260417194606.39997-1-pierrick.bouvier@oss.qualcomm.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-Proofpoint-ORIG-GUID":"7j91LSiK0LTMoWglQ7IoStI5bGPHsY2n","X-Proofpoint-Spam-Details-Enc":"AW1haW4tMjYwNDE3MDE5OSBTYWx0ZWRfXzd5jPfrZ/Qtx\n JILT/JQOZv8BFDSIqQqhTxw1OOw3JqrZVLNPCssJ7op/l6gcPglsjY7A0bjoHxhZQ7fBC5ZHkv5\n CbzDuW/8Y69yyz/lo4wgUEHm6mC8BeJ4oH9RUVxdkxt09G68Xkb4G6dWQsS+F0gfVjBQ+a3BR0I\n fIyPa50WhxzWnLb8eM+kZ3VZac6s4UB+oNIv3bNEqmokfUbrMK/MkgEFojaQrIw7mT9N6nxBBW/\n 5mOKkYjXdLTQT8OQ/n06i9jZlT0XsFnY+ZxKCuA9WQC2R8/pFy0q8ZA9veAyoebRXjVtVhVuh1q\n +Te3reTRWHKDfg7vcit/3AYA+aGjBHKgU8S+rdiXzINw2lcC0s5GnF2dgkOXXZqT053cG/wLvW0\n qdfPqoO6ttByocUSm1lHQ9V5Oiy3tiXAsnJeETfW8S/D6DWPiRDxCjGn4O4BW2iRkluWiTnsBLB\n pUpI5Xu2BW5p+6zCXGw==","X-Authority-Analysis":"v=2.4 cv=GN041ONK c=1 sm=1 tr=0 ts=69e28e08 cx=c_pps\n a=JYo30EpNSr/tUYqK9jHPoA==:117 a=iLqgmErQAxjCjdq5jj1Aqg==:17\n a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8\n a=0OY9Ckch0cO6u8H8HYMA:9 a=Fk4IpSoW4aLDllm1B1p-:22","X-Proofpoint-GUID":"7j91LSiK0LTMoWglQ7IoStI5bGPHsY2n","X-Proofpoint-Virus-Version":"vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-17_02,2026-04-17_04,2025-10-01_01","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n clxscore=1015 priorityscore=1501 spamscore=0 impostorscore=0 suspectscore=0\n lowpriorityscore=0 malwarescore=0 adultscore=0 bulkscore=0 phishscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604170199","Received-SPF":"pass client-ip=205.220.168.131;\n envelope-from=pierrick.bouvier@oss.qualcomm.com;\n helo=mx0a-0031df01.pphosted.com","X-Spam_score_int":"-27","X-Spam_score":"-2.8","X-Spam_bar":"--","X-Spam_report":"(-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,\n RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham 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 <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"Use a loop over instructions sets and decodetree generator instead of\nmanual custom targets repeated.\nModify included files accordingly in target/hexagon/decode.c.\n\nSigned-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>\n---\n target/hexagon/decode.c    |  14 ++--\n target/hexagon/meson.build | 145 +++++--------------------------------\n 2 files changed, 26 insertions(+), 133 deletions(-)","diff":"diff --git a/target/hexagon/decode.c b/target/hexagon/decode.c\nindex dbc9c630e8..4de0541536 100644\n--- a/target/hexagon/decode.c\n+++ b/target/hexagon/decode.c\n@@ -67,15 +67,15 @@ static int shift_left(DisasContext *ctx, int x, int n, int immno)\n }\n \n /* Include the generated decoder for 32 bit insn */\n-#include \"decode_normal_generated.c.inc\"\n-#include \"decode_hvx_generated.c.inc\"\n+#include \"decode-normal.c.inc\"\n+#include \"decode-ext_mmvec.c.inc\"\n \n /* Include the generated decoder for 16 bit insn */\n-#include \"decode_subinsn_a_generated.c.inc\"\n-#include \"decode_subinsn_l1_generated.c.inc\"\n-#include \"decode_subinsn_l2_generated.c.inc\"\n-#include \"decode_subinsn_s1_generated.c.inc\"\n-#include \"decode_subinsn_s2_generated.c.inc\"\n+#include \"decode-subinsn_a.c.inc\"\n+#include \"decode-subinsn_l1.c.inc\"\n+#include \"decode-subinsn_l2.c.inc\"\n+#include \"decode-subinsn_s1.c.inc\"\n+#include \"decode-subinsn_s2.c.inc\"\n \n /* Include the generated helpers for the decoder */\n #include \"decodetree_trans_funcs_generated.c.inc\"\ndiff --git a/target/hexagon/meson.build b/target/hexagon/meson.build\nindex d169cf71b2..d993e1b520 100644\n--- a/target/hexagon/meson.build\n+++ b/target/hexagon/meson.build\n@@ -93,135 +93,28 @@ hexagon_ss.add(iset_py)\n # Step 4\n # Generate the input to the QEMU decodetree.py script\n #\n-normal_decode_generated = custom_target(\n-    'normal_decode_generated',\n-    output: 'normal_decode_generated',\n+insn_sets = {\n+'NORMAL':     ['--static-decode=decode_normal'],\n+'EXT_mmvec':  ['--static-decode=decode_hvx'],\n+'SUBINSN_A':  ['--static-decode=decode_subinsn_a', '--insnwidth=16'],\n+'SUBINSN_L1': ['--static-decode=decode_subinsn_l1', '--insnwidth=16'],\n+'SUBINSN_L2': ['--static-decode=decode_subinsn_l2', '--insnwidth=16'],\n+'SUBINSN_S1': ['--static-decode=decode_subinsn_s1', '--insnwidth=16'],\n+'SUBINSN_S2': ['--static-decode=decode_subinsn_s2', '--insnwidth=16'],\n+}\n+\n+foreach insn_set, decodetree_options : insn_sets\n+  decodetree_file_name = insn_set.to_lower() + '.decode'\n+  # generate decodetree file\n+  decodetree_file = custom_target(\n+    output: decodetree_file_name,\n     depends: [iset_py, semantics_generated],\n     env: {'PYTHONPATH': meson.current_build_dir()},\n-    command: [python, files('gen_decodetree.py'), semantics_generated, 'NORMAL', '@OUTPUT@'],\n-)\n-hexagon_ss.add(normal_decode_generated)\n+    command: [python, files('gen_decodetree.py'), semantics_generated, insn_set, '@OUTPUT@'])\n \n-hvx_decode_generated = custom_target(\n-    'hvx_decode_generated',\n-    output: 'hvx_decode_generated',\n-    depends: [iset_py, semantics_generated],\n-    env: {'PYTHONPATH': meson.current_build_dir()},\n-    command: [python, files('gen_decodetree.py'), semantics_generated, 'EXT_mmvec', '@OUTPUT@'],\n-)\n-hexagon_ss.add(hvx_decode_generated)\n-\n-subinsn_a_decode_generated = custom_target(\n-    'subinsn_a_decode_generated',\n-    output: 'subinsn_a_decode_generated',\n-    depends: [iset_py, semantics_generated],\n-    env: {'PYTHONPATH': meson.current_build_dir()},\n-    command: [python, files('gen_decodetree.py'), semantics_generated, 'SUBINSN_A', '@OUTPUT@'],\n-)\n-hexagon_ss.add(subinsn_a_decode_generated)\n-\n-subinsn_l1_decode_generated = custom_target(\n-    'subinsn_l1_decode_generated',\n-    output: 'subinsn_l1_decode_generated',\n-    depends: [iset_py, semantics_generated],\n-    env: {'PYTHONPATH': meson.current_build_dir()},\n-    command: [python, files('gen_decodetree.py'), semantics_generated, 'SUBINSN_L1', '@OUTPUT@'],\n-)\n-hexagon_ss.add(subinsn_l1_decode_generated)\n-\n-subinsn_l2_decode_generated = custom_target(\n-    'subinsn_l2_decode_generated',\n-    output: 'subinsn_l2_decode_generated',\n-    depends: [iset_py, semantics_generated],\n-    env: {'PYTHONPATH': meson.current_build_dir()},\n-    command: [python, files('gen_decodetree.py'), semantics_generated, 'SUBINSN_L2', '@OUTPUT@'],\n-)\n-hexagon_ss.add(subinsn_l2_decode_generated)\n-\n-subinsn_s1_decode_generated = custom_target(\n-    'subinsn_s1_decode_generated',\n-    output: 'subinsn_s1_decode_generated',\n-    depends: [iset_py, semantics_generated],\n-    env: {'PYTHONPATH': meson.current_build_dir()},\n-    command: [python, files('gen_decodetree.py'), semantics_generated, 'SUBINSN_S1', '@OUTPUT@'],\n-)\n-hexagon_ss.add(subinsn_s1_decode_generated)\n-\n-subinsn_s2_decode_generated = custom_target(\n-    'subinsn_s2_decode_generated',\n-    output: 'subinsn_s2_decode_generated',\n-    depends: [iset_py, semantics_generated],\n-    env: {'PYTHONPATH': meson.current_build_dir()},\n-    command: [python, files('gen_decodetree.py'), semantics_generated, 'SUBINSN_S2', '@OUTPUT@'],\n-)\n-hexagon_ss.add(subinsn_s2_decode_generated)\n-\n-#\n-# Run the QEMU decodetree.py script to produce the instruction decoder\n-#\n-decodetree_py = meson.current_source_dir() / '../../scripts/decodetree.py'\n-decode_normal_generated = custom_target(\n-    'decode_normal_generated.c.inc',\n-    output: 'decode_normal_generated.c.inc',\n-    input: normal_decode_generated,\n-    env: {'PYTHONPATH': meson.current_build_dir()},\n-    command: [python, files(decodetree_py), normal_decode_generated, '--static-decode=decode_normal', '-o', '@OUTPUT@'],\n-)\n-hexagon_ss.add(decode_normal_generated)\n-\n-decode_hvx_generated = custom_target(\n-    'decode_hvx_generated.c.inc',\n-    output: 'decode_hvx_generated.c.inc',\n-    input: hvx_decode_generated,\n-    env: {'PYTHONPATH': meson.current_build_dir()},\n-    command: [python, files(decodetree_py), hvx_decode_generated, '--static-decode=decode_hvx', '-o', '@OUTPUT@'],\n-)\n-hexagon_ss.add(decode_hvx_generated)\n-\n-decode_subinsn_a_generated = custom_target(\n-    'decode_subinsn_a_generated.c.inc',\n-    output: 'decode_subinsn_a_generated.c.inc',\n-    input: subinsn_a_decode_generated,\n-    env: {'PYTHONPATH': meson.current_build_dir()},\n-    command: [python, files(decodetree_py), subinsn_a_decode_generated, ['--static-decode=decode_subinsn_a', '--insnwidth=16'], '-o', '@OUTPUT@'],\n-)\n-hexagon_ss.add(decode_subinsn_a_generated)\n-\n-decode_subinsn_l1_generated = custom_target(\n-    'decode_subinsn_l1_generated.c.inc',\n-    output: 'decode_subinsn_l1_generated.c.inc',\n-    input: subinsn_l1_decode_generated,\n-    env: {'PYTHONPATH': meson.current_build_dir()},\n-    command: [python, files(decodetree_py), subinsn_l1_decode_generated, ['--static-decode=decode_subinsn_l1', '--insnwidth=16'], '-o', '@OUTPUT@'],\n-)\n-hexagon_ss.add(decode_subinsn_l1_generated)\n-\n-decode_subinsn_l2_generated = custom_target(\n-    'decode_subinsn_l2_generated.c.inc',\n-    output: 'decode_subinsn_l2_generated.c.inc',\n-    input: subinsn_l2_decode_generated,\n-    env: {'PYTHONPATH': meson.current_build_dir()},\n-    command: [python, files(decodetree_py), subinsn_l2_decode_generated, ['--static-decode=decode_subinsn_l2', '--insnwidth=16'], '-o', '@OUTPUT@'],\n-)\n-hexagon_ss.add(decode_subinsn_l2_generated)\n-\n-decode_subinsn_s1_generated = custom_target(\n-    'decode_subinsn_s1_generated.c.inc',\n-    output: 'decode_subinsn_s1_generated.c.inc',\n-    input: subinsn_s1_decode_generated,\n-    env: {'PYTHONPATH': meson.current_build_dir()},\n-    command: [python, files(decodetree_py), subinsn_s1_decode_generated, ['--static-decode=decode_subinsn_s1', '--insnwidth=16'], '-o', '@OUTPUT@'],\n-)\n-hexagon_ss.add(decode_subinsn_s1_generated)\n-\n-decode_subinsn_s2_generated = custom_target(\n-    'decode_subinsn_s2_generated.c.inc',\n-    output: 'decode_subinsn_s2_generated.c.inc',\n-    input: subinsn_s2_decode_generated,\n-    env: {'PYTHONPATH': meson.current_build_dir()},\n-    command: [python, files(decodetree_py), subinsn_s2_decode_generated, ['--static-decode=decode_subinsn_s2', '--insnwidth=16'], '-o', '@OUTPUT@'],\n-)\n-hexagon_ss.add(decode_subinsn_s2_generated)\n+  # Run the QEMU decodetree.py script to produce the instruction decoder\n+  hexagon_ss.add(decodetree.process(decodetree_file, extra_args: decodetree_options))\n+endforeach\n \n #\n # Generate the trans_* functions that the decoder will use\n","prefixes":["1/2"]}