{"id":2197988,"url":"http://patchwork.ozlabs.org/api/1.0/covers/2197988/?format=json","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.0/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":""},"msgid":"<20260219040150.2098396-1-pierrick.bouvier@linaro.org>","date":"2026-02-19T04:01:36","name":"[v4,00/14] target/arm: single-binary","submitter":{"id":85798,"url":"http://patchwork.ozlabs.org/api/1.0/people/85798/?format=json","name":"Pierrick Bouvier","email":"pierrick.bouvier@linaro.org"},"series":[{"id":492635,"url":"http://patchwork.ozlabs.org/api/1.0/series/492635/?format=json","date":"2026-02-19T04:01:36","name":"target/arm: single-binary","version":4,"mbox":"http://patchwork.ozlabs.org/series/492635/mbox/"}],"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=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=EbnrHnDw;\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=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.gnu.org (lists.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 4fGfqS4CQ4z1xpY\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 19 Feb 2026 15:02:59 +1100 (AEDT)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vsvEz-0008Kl-TB; Wed, 18 Feb 2026 23:02:13 -0500","from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <pierrick.bouvier@linaro.org>)\n id 1vsvEy-0008KQ-Ey\n for qemu-devel@nongnu.org; Wed, 18 Feb 2026 23:02:12 -0500","from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <pierrick.bouvier@linaro.org>)\n id 1vsvEw-0001Cn-JW\n for qemu-devel@nongnu.org; Wed, 18 Feb 2026 23:02:12 -0500","by mail-pl1-x62b.google.com with SMTP id\n d9443c01a7336-2ab232cc803so2156905ad.3\n for <qemu-devel@nongnu.org>; Wed, 18 Feb 2026 20:02:09 -0800 (PST)","from pc.taild8403c.ts.net (216-71-219-44.dyn.novuscom.net.\n [216.71.219.44]) by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2ad1a73200asm147636225ad.36.2026.02.18.20.02.07\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 18 Feb 2026 20:02:07 -0800 (PST)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1771473729; x=1772078529; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=g+k/37VNyM44S8IKpnLIeLYphIGYrb6n3z+1yI/fqF0=;\n b=EbnrHnDwk059TaOP9tp8JOexZ2XpH5a71mv56lIowm3K/3Nm0YM5u85HO/eth/41jd\n VCZSaSnBsaPld8pWHYZAvgjxIdrUwRyRcSlUA1WQ1N7Ma/ONJDNKllECcVC4cnGC3nUd\n cGmnTxKyG+myszeRXniRB1VR/emWojXVO0pTGyFLKD8YCmxGjLdZ2ggZMnnv/tMaeMd7\n mG8QeqK5n0vagtGc4ByJTiYdj66C+gzfCUiyGFcCpjUd3et/GzKHGYfVd7om7So63/e+\n yOswwJ9l2nCvaoOMX+tKu3okRk6j7EHeoRiHQ6594K46Uu9IjidvP0r3124V6KqpsnmX\n lPkg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771473729; x=1772078529;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=g+k/37VNyM44S8IKpnLIeLYphIGYrb6n3z+1yI/fqF0=;\n b=IqFxcqcv2rnJt2b69MkYymmhgmH3YMjBjKbT5PdLp3EAuQFKSWIeKPPFMFSXV3iFit\n wGXb3KzEcEB8NQD39n9uHYTMTMyu5owUNxOnrzSWtTTM1gr+31NWS4Aw4fvE0p+vgBxl\n Lm/zUmcVnWUo/f3sRkbVYXSLQ1I7VC2L8LVGhic+FHBrtGp0pYlV2iDdVAhNGl+QUjsL\n g/fn89dBt/MtIWKxckEsrh/DmD11gmR3upAgo6kD6YX5dIhTKgI3FuRdr4MKEIQlNcRa\n a7H/9nz5LReFwtlDOQ4PTIKjEihh0UGcUKcGgWFPvSBByPZFQX+dx9FzQjKRCwNJTL3T\n BQ+g==","X-Gm-Message-State":"AOJu0YzqsB4GBurkHvv0C6S1gXCoufT9d7GBYieSgiO7y//Atav8dmrn\n FTIVSQMTPXEXU7EwgEsm6Ff7milXq783BEtfWy0ivkGpQ430bBZiDSe3O3t0SoQkMYBq9fnXMUp\n 1Hegp","X-Gm-Gg":"AZuq6aKig76rODF+V/SG0amns21/9/AT1S0uiwdajrYMun1/CexhKJPz+uL8FaA6RiZ\n tveehtyCrkevV5aZP/bRAHib5xdqVd6M9+0R6Ch1T/q6NcLeFkdso1eG7LgJLqQMP+ezmHqTzVt\n NUhU96NwltwQhYuLMC95PLJb3z3Q6ouVJbsK7IlIbsLbZzf8WPjnfs6r1SwDjcb6Eqri0EWVGP6\n 8bSyYRrC68/vEvkYQtnlEMC/F8v+Cik4xrSkc96v0z8tPZyjE4t/6nYSXKpKbXlWVfhyEyYAEdh\n A61Pb2A4sNT3JyyQ97HusKzJYnGrW3uHXw4c7GTEOcoEih6G4NZ+oKr5lhk1GE28Fg7qtUUEKT7\n WAK/dKqHYgjvcM7rd82VZVSBLzQ7dc7bDwERIp4AhnaBRe3SSp3Gqfhcs/hgbQgHTYzOPs2dZws\n xxEw+I9JOXu3LmaAcD9jk3vnoHZk3SzBAHw87oGorBYSVdDy1efY9M2oHDpF9O2FVfMMP/Dtm5X\n HXW8JP3IvNUaOA=","X-Received":"by 2002:a17:903:2284:b0:2a9:2ab2:e50d with SMTP id\n d9443c01a7336-2ad17586af9mr127169705ad.51.1771473728472;\n Wed, 18 Feb 2026 20:02:08 -0800 (PST)","From":"Pierrick Bouvier <pierrick.bouvier@linaro.org>","To":"qemu-devel@nongnu.org","Cc":"=?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>,\n Paolo Bonzini <pbonzini@redhat.com>, qemu-arm@nongnu.org,\n kvm@vger.kernel.org, Richard Henderson <richard.henderson@linaro.org>,\n\t=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, anjo@rev.ng,\n Peter Maydell <peter.maydell@linaro.org>,\n Jim MacArthur <jim.macarthur@linaro.org>","Subject":"[PATCH v4 00/14] target/arm: single-binary","Date":"Wed, 18 Feb 2026 20:01:36 -0800","Message-ID":"<20260219040150.2098396-1-pierrick.bouvier@linaro.org>","X-Mailer":"git-send-email 2.47.3","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=2607:f8b0:4864:20::62b;\n envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62b.google.com","X-Spam_score_int":"-20","X-Spam_score":"-2.1","X-Spam_bar":"--","X-Spam_report":"(-2.1 / 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_NONE=-0.0001, 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":"This series continues cleaning target/arm, especially tcg folder.\n\nFor now, it contains some cleanups in headers, and it splits helpers per\ncategory, thus removing several usage of TARGET_AARCH64.\nFirst version was simply splitting 32 vs 64-bit helpers, and Richard asked\nto split per sub category.\n\nv4\n--\n\n- add two patches from Peter removing helper in non-tcg files\n  20260216160349.3079657-1-peter.maydell@linaro.org\n  This fixes build failure with kvm-only and xen-only builds on aarch64.\n  I didn't split helper and gen_helper headers. If that really matters, it can\n  be done in v5.\n\nv3\n--\n\n- translate.h: missing vaddr replacement\n- move tcg_use_softmmu to tcg/tcg-internal.h to avoid duplicating compilation\n  units between system and user builds.\n- eradicate TARGET_INSN_START_EXTRA_WORDS by calling tcg_gen_insn_start with\n  additional 0 parameters if needed.\n\nv2\n--\n\n- add missing kvm_enabled() in arm-qmp-cmds.c\n- didn't extract arm_wfi for tcg/psci.c. If that's a hard requirement, I can do\n  it in next version.\n- restricted scope of series to helper headers, so we can validate things one\n  step at a time. Series will keep on growing once all patches are reviewed.\n- translate.h: use vaddr where appropriate, as asked by Richard.\n\nPeter Maydell (2):\n  target/arm: Move TCG-specific code out of debug_helper.c\n  target/arm: Don't require helper prototypes in helper.c\n\nPierrick Bouvier (12):\n  target/arm: extract helper-mve.h from helper.h\n  target/arm: extract helper-a64.h from helper.h\n  target/arm: extract helper-sve.h from helper.h\n  target/arm: extract helper-sme.h from helper.h\n  tcg: move tcg_use_softmmu to tcg/tcg-internal.h\n  target/arm: move exec/helper-* plumbery to helper.h\n  target/arm/tcg/psci.c: make compilation unit common\n  target/arm/tcg/cpu-v7m.c: make compilation unit common\n  target/arm/tcg/vec_helper.c: make compilation unit common\n  target/arm/tcg/translate.h: replace target_ulong with vaddr\n  target/arm/tcg/translate.h: replace target_long with int64_t\n  include/tcg/tcg-op.h: eradicate TARGET_INSN_START_EXTRA_WORDS\n\n include/tcg/tcg-op-common.h                   |   8 +\n include/tcg/tcg-op.h                          |  29 -\n include/tcg/tcg.h                             |   6 -\n target/alpha/cpu-param.h                      |   2 -\n target/arm/cpu-param.h                        |   7 -\n target/arm/helper-a64.h                       |  14 +\n target/arm/helper-mve.h                       |  14 +\n target/arm/helper-sme.h                       |  14 +\n target/arm/helper-sve.h                       |  14 +\n target/arm/helper.h                           |  17 +-\n .../tcg/{helper-a64.h => helper-a64-defs.h}   |   0\n target/arm/tcg/{helper.h => helper-defs.h}    |   0\n .../tcg/{helper-mve.h => helper-mve-defs.h}   |   0\n .../tcg/{helper-sme.h => helper-sme-defs.h}   |   0\n .../tcg/{helper-sve.h => helper-sve-defs.h}   |   0\n target/arm/tcg/translate-a32.h                |   2 +-\n target/arm/tcg/translate.h                    |  22 +-\n target/arm/tcg/vec_internal.h                 |  49 ++\n target/avr/cpu-param.h                        |   2 -\n target/hexagon/cpu-param.h                    |   2 -\n target/hppa/cpu-param.h                       |   2 -\n target/i386/cpu-param.h                       |   2 -\n target/loongarch/cpu-param.h                  |   2 -\n target/m68k/cpu-param.h                       |   2 -\n target/microblaze/cpu-param.h                 |   2 -\n target/mips/cpu-param.h                       |   2 -\n target/or1k/cpu-param.h                       |   2 -\n target/ppc/cpu-param.h                        |   2 -\n target/riscv/cpu-param.h                      |   7 -\n target/rx/cpu-param.h                         |   2 -\n target/s390x/cpu-param.h                      |   2 -\n target/sh4/cpu-param.h                        |   2 -\n target/sparc/cpu-param.h                      |   2 -\n target/tricore/cpu-param.h                    |   2 -\n target/xtensa/cpu-param.h                     |   2 -\n tcg/tcg-internal.h                            |   6 +\n target/alpha/translate.c                      |   4 +-\n target/arm/debug_helper.c                     | 769 -----------------\n target/arm/helper.c                           |   5 +-\n target/arm/tcg/arith_helper.c                 |   4 +-\n target/arm/tcg/crypto_helper.c                |   4 +-\n target/arm/tcg/debug.c                        | 780 ++++++++++++++++++\n target/arm/tcg/gengvec64.c                    |   3 +-\n target/arm/tcg/helper-a64.c                   |   6 +-\n target/arm/tcg/hflags.c                       |   4 +-\n target/arm/tcg/m_helper.c                     |   2 +-\n target/arm/tcg/mte_helper.c                   |   3 +-\n target/arm/tcg/mve_helper.c                   |   6 +-\n target/arm/tcg/neon_helper.c                  |   4 +-\n target/arm/tcg/op_helper.c                    |   2 +-\n target/arm/tcg/pauth_helper.c                 |   3 +-\n target/arm/tcg/psci.c                         |   4 +-\n target/arm/tcg/sme_helper.c                   |   5 +-\n target/arm/tcg/sve_helper.c                   |   6 +-\n target/arm/tcg/tlb_helper.c                   |   4 +-\n target/arm/tcg/translate-a64.c                |   3 +\n target/arm/tcg/translate-mve.c                |   1 +\n target/arm/tcg/translate-sme.c                |   3 +\n target/arm/tcg/translate-sve.c                |   3 +\n target/arm/tcg/translate.c                    |  28 +-\n target/arm/tcg/vec_helper.c                   | 224 +----\n target/arm/tcg/vec_helper64.c                 | 142 ++++\n target/arm/tcg/vfp_helper.c                   |   4 +-\n target/avr/translate.c                        |   2 +-\n target/hexagon/translate.c                    |   2 +-\n target/i386/tcg/translate.c                   |   2 +-\n target/loongarch/tcg/translate.c              |   2 +-\n target/m68k/translate.c                       |   2 +-\n target/microblaze/translate.c                 |   2 +-\n target/or1k/translate.c                       |   2 +-\n target/ppc/translate.c                        |   2 +-\n target/rx/translate.c                         |   2 +-\n target/sh4/translate.c                        |   4 +-\n target/sparc/translate.c                      |   2 +-\n target/tricore/translate.c                    |   2 +-\n target/xtensa/translate.c                     |   2 +-\n tcg/tcg.c                                     |   4 -\n target/arm/tcg/meson.build                    |  13 +-\n 78 files changed, 1165 insertions(+), 1149 deletions(-)\n create mode 100644 target/arm/helper-a64.h\n create mode 100644 target/arm/helper-mve.h\n create mode 100644 target/arm/helper-sme.h\n create mode 100644 target/arm/helper-sve.h\n rename target/arm/tcg/{helper-a64.h => helper-a64-defs.h} (100%)\n rename target/arm/tcg/{helper.h => helper-defs.h} (100%)\n rename target/arm/tcg/{helper-mve.h => helper-mve-defs.h} (100%)\n rename target/arm/tcg/{helper-sme.h => helper-sme-defs.h} (100%)\n rename target/arm/tcg/{helper-sve.h => helper-sve-defs.h} (100%)\n create mode 100644 target/arm/tcg/debug.c\n create mode 100644 target/arm/tcg/vec_helper64.c"}