From nobody Tue Feb 10 08:04:48 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=1770351846; cv=none; d=zohomail.com; s=zohoarc; b=Pd2Yd43GRDnw7RVLDZj5QcANVVi2FsXOMd8jUZt8cnYrm6fGTyRWniqLEy2yToo3zHTdPmHVBB/R1182/EhnwfsMccB9mY2VLboyCaRTa4wS0rPI9b9RqdSCEwT6YhrujyCRgCAmiu/nAOmRxSdQXTkfa0NxkQlAd5YBOBVSJbA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770351846; 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=YLdsG4HlWuWSh+GlyasLIetJzfEL7Zerke5StBuCcPc=; b=oLbUPbA6QNlmo1KNXxUZyocvoFvRVORbccHJT1VRhozH50+IChURT+p+idUPbbrnHwmPnwwj9XDEsGcmpi9W51DkaOEYvcaCkn91092Oavk9WkNIN3KFE1JQZy+nBs+69bCSAB1Vx5tLEM1GcN1AKiKaX3eKt1/mrPdEIof9858= 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 1770351846580852.818348499133; Thu, 5 Feb 2026 20:24:06 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1voDMA-0004Lp-Ab; Thu, 05 Feb 2026 23:22:10 -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-0004Kb-HR for qemu-devel@nongnu.org; Thu, 05 Feb 2026 23:22:08 -0500 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1voDM5-0003Qt-4u for qemu-devel@nongnu.org; Thu, 05 Feb 2026 23:22:08 -0500 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-8217f2ad01eso1464332b3a.2 for ; Thu, 05 Feb 2026 20:22:04 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Feb 2026 20:22:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1770351724; x=1770956524; 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=YLdsG4HlWuWSh+GlyasLIetJzfEL7Zerke5StBuCcPc=; b=XjHWJYWffwCDtBjfCHJUiP+WmvvhCoSZzU9VWHBbg53MRED8+AvBP4QizfF+qwf0Tk RDiyHB3xBnwHHLM51xF5fKC3bDChe07Ia04+C2nuU2MoRFLhy6sgC/Vj8ULGsvYa7rMb ZXPuomGUIstpvN3nPl883ixI9jcJiZhePh60arQhfOvp9eJTulwplufCtRRUbToYnM1z erXxpc0yL5hn8EQ9JrgCL+e2yStU7etfHbbLhg7fKGzIh7eq2yDf6gf+LBn4LcwL2QPy iY1nThyl2W7oZ7VzrYKmP2FuxulDTQrw0c9tLYFeRcqM/Ry0dMIglkfZjigRW/Caz52j FjUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770351724; x=1770956524; 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=YLdsG4HlWuWSh+GlyasLIetJzfEL7Zerke5StBuCcPc=; b=iNdzxcDAeCNF8IzvopzMwZjcAV6RX2/TtAPx0Vo7FoNbPSd6/j28eZ5Wnx8icEH7+4 Ntxn/f6ZmhilXr6D/u00qX9/UoAShc0LxkTGMy6/YuoHXyNgSFWHL7CXF+a6xxmo3A4J cttQ01otlZ9iP+a3cH/cnr7EAFT6Yn8f1DLKwJje/tQDzgw4Encom4f0BoCWoPqcjPDj 3hl1VDwvSHtq7BwYZKk7IVkuWLw69rNrlde0kBKeki0bQlt0ZhICYhgma4ABF5TrnQ4m D6zU+kK/jYvNwNXeLCtaz/2kionoeMqZwQSToAAin0361e7xS/MAdWGj5gWAa2dX1TpD +EDw== X-Gm-Message-State: AOJu0YyVvK/T8V3+N2cTMO5wtO2hYi8JOd5l91ySoERM91qgE6JoVVka ftKwFEOdmdbmjRlqpg+M4McyZ+Uq4lJSlXj43+Y5Dkp2Q3h5cfZUa7W7f8YQbaPWgqEYcn+dghi W8L0y X-Gm-Gg: AZuq6aKMYtzaxlmx9EolRxC4lU6vyonbLZLhLTS/PQnHe9J5Q1eeAaatS/yYgWasunQ ayJ7+LeuIloPYwMtTADGpqClVX9GANCaFZJIt85Sj2u+oefk8j2xJsj0pH4tM174pw5pTa6av++ BqLOeiWbSzthgjC11o83qG0fa0hcYamj4PrBlKjclSqlPMDIWZJsRN06aAXvplArN3CZ0xRbWrt X68fG49VWeOi4dd9aU6f0X+huKVp0Ezm8RnG/mh8Zll0lP+qMmAmmowOhWNw8ozE1BOJubT5bZG 4Nax5un4bTn748jM2Gq9ubH9OLiLolqEKSwc5Ckr/Mtz8+hPFytt5FhymCZ4KqBOOZr2MxIRB5K qxaQL0cjnCU7yxvp0gEFN40M86OKVwHPpv/tY/nB+Uo8ECin9DLF7KdYTxVePyWg1qf0dW1Ng0D /BpxMA8tVM5xz2yLKzezhFydnMg5l7qaSSs/y00flw6wzFHaZDmcj1e+xiwyg1xmPz X-Received: by 2002:a05:6a00:2341:b0:81e:f623:b9fe with SMTP id d2e1a72fcca58-82441607461mr1345030b3a.4.1770351723650; Thu, 05 Feb 2026 20:22:03 -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 04/12] target/arm: extract helper-sve.h from helper.h Date: Thu, 5 Feb 2026 20:21:42 -0800 Message-ID: <20260206042150.912578-5-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::42a; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42a.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: 1770351848261154100 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- target/arm/helper-sve.h | 14 ++++++++++++++ target/arm/helper.h | 1 - target/arm/tcg/{helper-sve.h =3D> helper-sve-defs.h} | 0 target/arm/tcg/gengvec64.c | 3 ++- target/arm/tcg/sve_helper.c | 3 +++ target/arm/tcg/translate-a64.c | 1 + target/arm/tcg/translate-sme.c | 2 ++ target/arm/tcg/translate-sve.c | 2 ++ target/arm/tcg/vec_helper.c | 1 + 9 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 target/arm/helper-sve.h rename target/arm/tcg/{helper-sve.h =3D> helper-sve-defs.h} (100%) diff --git a/target/arm/helper-sve.h b/target/arm/helper-sve.h new file mode 100644 index 00000000000..ae4f46c70a0 --- /dev/null +++ b/target/arm/helper-sve.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#ifndef HELPER_SVE_H +#define HELPER_SVE_H + +#include "exec/helper-proto-common.h" +#include "exec/helper-gen-common.h" + +#define HELPER_H "tcg/helper-sve-defs.h" +#include "exec/helper-proto.h.inc" +#include "exec/helper-gen.h.inc" +#undef HELPER_H + +#endif /* HELPER_SVE_H */ diff --git a/target/arm/helper.h b/target/arm/helper.h index 79f8de1e169..2f724643d39 100644 --- a/target/arm/helper.h +++ b/target/arm/helper.h @@ -3,6 +3,5 @@ #include "tcg/helper.h" =20 #ifdef TARGET_AARCH64 -#include "tcg/helper-sve.h" #include "tcg/helper-sme.h" #endif diff --git a/target/arm/tcg/helper-sve.h b/target/arm/tcg/helper-sve-defs.h similarity index 100% rename from target/arm/tcg/helper-sve.h rename to target/arm/tcg/helper-sve-defs.h diff --git a/target/arm/tcg/gengvec64.c b/target/arm/tcg/gengvec64.c index c425d2b1490..c7bdd1ea82f 100644 --- a/target/arm/tcg/gengvec64.c +++ b/target/arm/tcg/gengvec64.c @@ -18,10 +18,11 @@ */ =20 #include "qemu/osdep.h" +#include "cpu.h" +#include "helper-sve.h" #include "translate.h" #include "translate-a64.h" =20 - static void gen_rax1_i64(TCGv_i64 d, TCGv_i64 n, TCGv_i64 m) { tcg_gen_rotli_i64(d, m, 1); diff --git a/target/arm/tcg/sve_helper.c b/target/arm/tcg/sve_helper.c index 0600eea47c7..16e528e41a6 100644 --- a/target/arm/tcg/sve_helper.c +++ b/target/arm/tcg/sve_helper.c @@ -25,6 +25,7 @@ #include "exec/target_page.h" #include "exec/tlb-flags.h" #include "helper-a64.h" +#include "helper-sve.h" #include "tcg/tcg-gvec-desc.h" #include "fpu/softfloat.h" #include "tcg/tcg.h" @@ -38,6 +39,8 @@ #include "user/page-protection.h" #endif =20 +#define HELPER_H "tcg/helper-sve-defs.h" +#include "exec/helper-info.c.inc" =20 /* Return a value for NZCV as per the ARM PredTest pseudofunction. * diff --git a/target/arm/tcg/translate-a64.c b/target/arm/tcg/translate-a64.c index 1a54337b6a8..31fb2ea9cc3 100644 --- a/target/arm/tcg/translate-a64.c +++ b/target/arm/tcg/translate-a64.c @@ -19,6 +19,7 @@ #include "qemu/osdep.h" #include "exec/target_page.h" #include "helper-a64.h" +#include "helper-sve.h" #include "translate.h" #include "translate-a64.h" #include "qemu/log.h" diff --git a/target/arm/tcg/translate-sme.c b/target/arm/tcg/translate-sme.c index 091c56da4f4..463ece97ab8 100644 --- a/target/arm/tcg/translate-sme.c +++ b/target/arm/tcg/translate-sme.c @@ -18,6 +18,8 @@ */ =20 #include "qemu/osdep.h" +#include "cpu.h" +#include "helper-sve.h" #include "translate.h" #include "translate-a64.h" =20 diff --git a/target/arm/tcg/translate-sve.c b/target/arm/tcg/translate-sve.c index 64adb5c1ce3..c68a44aff8c 100644 --- a/target/arm/tcg/translate-sve.c +++ b/target/arm/tcg/translate-sve.c @@ -18,6 +18,8 @@ */ =20 #include "qemu/osdep.h" +#include "cpu.h" +#include "helper-sve.h" #include "translate.h" #include "translate-a64.h" #include "fpu/softfloat.h" diff --git a/target/arm/tcg/vec_helper.c b/target/arm/tcg/vec_helper.c index 7451a283efa..bc64c8ff374 100644 --- a/target/arm/tcg/vec_helper.c +++ b/target/arm/tcg/vec_helper.c @@ -21,6 +21,7 @@ #include "cpu.h" #include "exec/helper-proto.h" #include "helper-a64.h" +#include "helper-sve.h" #include "tcg/tcg-gvec-desc.h" #include "fpu/softfloat.h" #include "qemu/int128.h" --=20 2.47.3