From nobody Tue Feb 10 20:29:55 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1770351838; cv=none; d=zohomail.com; s=zohoarc; b=Wt+/O978clACEQEw9dQrPx0J2dCPYudBzZDFJ7vUgsNGaIeAismoas/MEeeN/7vW4sC0mmEW+Agf0Qtgv6UC32oNaAXdSsDAxIh8mwfJCgL2H8hAtoeuQBJ3amhnhK7z4j0pGkXtvTg/R44Zy0qQjLyIDJQzfvf81ABEaClekew= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770351838; h=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:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=3Lk/jdHTDjt74Lp5Po40mEBHEbq+K7p4bEQ2ho7U/vE=; b=l3l12ipT/4qZjr8XRZGq18RY1nteqxZwujnPb4GBDCAwC5G7dIXNK2zReu6xn8rzYytBqeZT8JXVhPsCjbmMsyN+PbxrP/52FFI0c/1AYqmh00LSwv6eV0gMKJLsTfvIEw+Ice0K8vJfDml6/kb+oPbTPZP3zSpFpZGhZv23FG0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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 177035183851168.40680754693881; Thu, 5 Feb 2026 20:23:58 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1voDMB-0004Mm-39; Thu, 05 Feb 2026 23:22:11 -0500 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 1voDM8-0004KG-7n for qemu-devel@nongnu.org; Thu, 05 Feb 2026 23:22:08 -0500 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1voDM4-0003QA-6Y for qemu-devel@nongnu.org; Thu, 05 Feb 2026 23:22:07 -0500 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-81f39438187so1227833b3a.2 for ; Thu, 05 Feb 2026 20:22:03 -0800 (PST) Received: from pc.taild8403c.ts.net (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8244168fdf5sm926914b3a.17.2026.02.05.20.22.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Feb 2026 20:22:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1770351723; x=1770956523; 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=3Lk/jdHTDjt74Lp5Po40mEBHEbq+K7p4bEQ2ho7U/vE=; b=n2XrrVWaARCGSO0rHOSdsD0LJ8J12Ci/zYzzAeZGTCfNFvIeHMemCZ5JwvPT3941kg nwameDGT/UF91yvqueGozsqiTYA3hhm1zF/IL2xIxFD7vuuFJNS/csD6+/cJyuAjSnT8 i1b6pHMq0BAldhe7fo8UKD8Wgpqh2LCgdIhT/BFZHLUuWYRvAZSPpb400bTWFvMOq1rn NwVgPnBp4r0VW+/ZNKPrSvjGhLzW5fQl4Uv69eoHhXDegLhmHQWpZXHYExrkKlZ9y1TR +o7crTt++BWUWP7qQaYtSOPRiBl/FiYdm6WnaX0e34kTnyKQMuNR4vesd0NLqr8rjJ2D k63A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770351723; x=1770956523; 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=3Lk/jdHTDjt74Lp5Po40mEBHEbq+K7p4bEQ2ho7U/vE=; b=gmfdlUfFfFTqmck2b7va+g4WI2SC18F/vLeb1sbs3x+37B0GO22dP/Rq4wLc7Sgc33 jUnRsHQ+DVtJ+QgfEjCrpDChjjdBcJ4bswUic2NAs5hsHaTe9nDkQ+nBtdXnN9Q8EqP9 u+Gu3mM1KntAhOGsvwzM/TvujX0A7yGAqIugeXbD/II+6aNWK90txqitSREjvHKVLOEn qhN3K2A8Jxnb9WfaIVzeU2u3KeX4O6uLZjpxOFFrZq8asX+Qv0MqBbvvpOLD5msrKzVz 7QTga9dVbxsuYGpB4kEXoU45nvzqcae6zpRhmOZV9oGOyDArOuPOigDkcRruVnibvdP/ VDgg== X-Gm-Message-State: AOJu0YxYifj23Ze6LyG2SaUbgB6jXujv10Oq1JTWgCJ8uucQnoSSLxpC pW40gMa8GscLTgXFbj7B+t85EHuoQmMAzXMrYidzQs5hm2QoxonPzGKVLQKdMcd6LgNCBLNtBXV GP+XB X-Gm-Gg: AZuq6aJaEbH0qEKdR5YWfGert6f/vZEuMkh9S/FaGYCDtErjmCWRIHtDmn91jy5+6Xz CQEJX2Jo6a+oBYcRDRbHDrXogwiGZHdYQCEsnVwm5q1oVxbwFosJX8+RemAU3/ymEMn1MbsU52N jBXip/0t6khBxCyYBj+m353CCIqImGLGNWCNtV/kf1CCyB/iXGI51BpcbzF6pjiPnjL6SEnHPRB c/CyDpmXnsNkzzJtJ1mCbvQU15A1U9vUzr5o5pkI0o3cvIH0iVZ/Ul5Qfw2DMn3IVLlTzDDJGky Bf3RTB4OOVmTTj6Yn1usswqvzgrMgp6x+thlqAcZhICyfF0ENdLnPgZWBLzNUEy6GJgRqVx5vHQ xLo2Rghh7SDREwsLfvXJx1QEhQFMToWUZvO7b1qJQjYM6WSbweGmFyIYtFrOSYN/o8vzIDxBRhQ X16JjfrlBfPWM7PqZs7wGGVEx5qulW7ElwGmigE7xxHNd0N0KuzrzxxKF1B892rO59 X-Received: by 2002:a05:6a00:4215:b0:81f:3d13:e07b with SMTP id d2e1a72fcca58-824416f29bfmr1053511b3a.43.1770351722621; Thu, 05 Feb 2026 20:22:02 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: anjo@rev.ng, Richard Henderson , Jim MacArthur , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Paolo Bonzini , kvm@vger.kernel.org, qemu-arm@nongnu.org, Pierrick Bouvier Subject: [PATCH v2 03/12] target/arm: extract helper-a64.h from helper.h Date: Thu, 5 Feb 2026 20:21:41 -0800 Message-ID: <20260206042150.912578-4-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260206042150.912578-1-pierrick.bouvier@linaro.org> References: <20260206042150.912578-1-pierrick.bouvier@linaro.org> 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=2607:f8b0:4864:20::430; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x430.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, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1770351839994158500 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- target/arm/helper-a64.h | 14 ++++++++++++++ target/arm/helper.h | 1 - target/arm/tcg/{helper-a64.h =3D> helper-a64-defs.h} | 0 target/arm/tcg/helper-a64.c | 4 ++++ target/arm/tcg/mte_helper.c | 1 + target/arm/tcg/pauth_helper.c | 1 + target/arm/tcg/sve_helper.c | 1 + target/arm/tcg/translate-a64.c | 1 + target/arm/tcg/vec_helper.c | 1 + 9 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 target/arm/helper-a64.h rename target/arm/tcg/{helper-a64.h =3D> helper-a64-defs.h} (100%) diff --git a/target/arm/helper-a64.h b/target/arm/helper-a64.h new file mode 100644 index 00000000000..cda7e039b72 --- /dev/null +++ b/target/arm/helper-a64.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#ifndef HELPER_A64_H +#define HELPER_A64_H + +#include "exec/helper-proto-common.h" +#include "exec/helper-gen-common.h" + +#define HELPER_H "tcg/helper-a64-defs.h" +#include "exec/helper-proto.h.inc" +#include "exec/helper-gen.h.inc" +#undef HELPER_H + +#endif /* HELPER_A64_H */ diff --git a/target/arm/helper.h b/target/arm/helper.h index 44c7f3ed751..79f8de1e169 100644 --- a/target/arm/helper.h +++ b/target/arm/helper.h @@ -3,7 +3,6 @@ #include "tcg/helper.h" =20 #ifdef TARGET_AARCH64 -#include "tcg/helper-a64.h" #include "tcg/helper-sve.h" #include "tcg/helper-sme.h" #endif diff --git a/target/arm/tcg/helper-a64.h b/target/arm/tcg/helper-a64-defs.h similarity index 100% rename from target/arm/tcg/helper-a64.h rename to target/arm/tcg/helper-a64-defs.h diff --git a/target/arm/tcg/helper-a64.c b/target/arm/tcg/helper-a64.c index e4d2c2e3928..07ddfb895dd 100644 --- a/target/arm/tcg/helper-a64.c +++ b/target/arm/tcg/helper-a64.c @@ -22,6 +22,7 @@ #include "cpu.h" #include "gdbstub/helpers.h" #include "exec/helper-proto.h" +#include "helper-a64.h" #include "qemu/host-utils.h" #include "qemu/log.h" #include "qemu/main-loop.h" @@ -43,6 +44,9 @@ #endif #include "vec_internal.h" =20 +#define HELPER_H "tcg/helper-a64-defs.h" +#include "exec/helper-info.c.inc" + /* C2.4.7 Multiply and divide */ /* special cases for 0 and LLONG_MIN are mandated by the standard */ uint64_t HELPER(udiv64)(uint64_t num, uint64_t den) diff --git a/target/arm/tcg/mte_helper.c b/target/arm/tcg/mte_helper.c index 08b8e7176a6..01b7f099f4a 100644 --- a/target/arm/tcg/mte_helper.c +++ b/target/arm/tcg/mte_helper.c @@ -31,6 +31,7 @@ #endif #include "accel/tcg/cpu-ldst.h" #include "accel/tcg/probe.h" +#include "helper-a64.h" #include "exec/helper-proto.h" #include "exec/tlb-flags.h" #include "accel/tcg/cpu-ops.h" diff --git a/target/arm/tcg/pauth_helper.c b/target/arm/tcg/pauth_helper.c index c591c3052c3..5a20117ae89 100644 --- a/target/arm/tcg/pauth_helper.c +++ b/target/arm/tcg/pauth_helper.c @@ -22,6 +22,7 @@ #include "internals.h" #include "cpu-features.h" #include "accel/tcg/cpu-ldst.h" +#include "helper-a64.h" #include "exec/helper-proto.h" #include "tcg/tcg-gvec-desc.h" #include "qemu/xxhash.h" diff --git a/target/arm/tcg/sve_helper.c b/target/arm/tcg/sve_helper.c index c442fcb540d..0600eea47c7 100644 --- a/target/arm/tcg/sve_helper.c +++ b/target/arm/tcg/sve_helper.c @@ -24,6 +24,7 @@ #include "exec/helper-proto.h" #include "exec/target_page.h" #include "exec/tlb-flags.h" +#include "helper-a64.h" #include "tcg/tcg-gvec-desc.h" #include "fpu/softfloat.h" #include "tcg/tcg.h" diff --git a/target/arm/tcg/translate-a64.c b/target/arm/tcg/translate-a64.c index 7a8cd99e004..1a54337b6a8 100644 --- a/target/arm/tcg/translate-a64.c +++ b/target/arm/tcg/translate-a64.c @@ -18,6 +18,7 @@ */ #include "qemu/osdep.h" #include "exec/target_page.h" +#include "helper-a64.h" #include "translate.h" #include "translate-a64.h" #include "qemu/log.h" diff --git a/target/arm/tcg/vec_helper.c b/target/arm/tcg/vec_helper.c index 33a136b90a6..7451a283efa 100644 --- a/target/arm/tcg/vec_helper.c +++ b/target/arm/tcg/vec_helper.c @@ -20,6 +20,7 @@ #include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" +#include "helper-a64.h" #include "tcg/tcg-gvec-desc.h" #include "fpu/softfloat.h" #include "qemu/int128.h" --=20 2.47.3