From nobody Sun May 11 12:22:25 2025 Delivered-To: importer2@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+importer2=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1686307775; cv=none; d=zohomail.com; s=zohoarc; b=VB+L0i7J4MLVF1We11ZrPnxYoAlbrQrMy4tViAIglbJAwYRm7KwJhiEkm79M2eUNIbCjdc9vQsiSdo6YD7QXIHiUph8e/vdBhN9b20lR0ixmgSFTGf+tL+2p+ERfio6gL/A0pKS5YBTipLfh48fMF3Z2nJd2TtdrC78rq4dRnQo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686307775; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=6EMxC9YLsY0bROTkA0K5UDqhCf1EdHUprhT+dzt+OvA=; b=hGVhmItXhacOXs08HBM56LkeU6BMKruzidHcwjJbReaBi2FIcdJIQg7ClqS6fufIYFdV/e6Wjkp4Gjd37XpLv80pba0Qx8bgjyCkOfG5ZpQvcnocEhgSaPsjrNMhoAZjZ6ZYg0DCIjkAWpReusawt0idQng/nCWm5LvrWSR2uo4= 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+importer2=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 1686307775181641.838508288773; Fri, 9 Jun 2023 03:49:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7ZgP-0000DS-8t; Fri, 09 Jun 2023 06:49:29 -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 1q7ZgN-0008WH-SD for qemu-devel@nongnu.org; Fri, 09 Jun 2023 06:49:27 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7ZgL-0001h3-Fk for qemu-devel@nongnu.org; Fri, 09 Jun 2023 06:49:27 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3f78a32266bso15626825e9.3 for ; Fri, 09 Jun 2023 03:49:24 -0700 (PDT) Received: from localhost.localdomain (23.171.88.92.rev.sfr.net. [92.88.171.23]) by smtp.gmail.com with ESMTPSA id f3-20020a7bc8c3000000b003f1958eeadcsm2292119wml.17.2023.06.09.03.49.22 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Jun 2023 03:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686307764; x=1688899764; 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=6EMxC9YLsY0bROTkA0K5UDqhCf1EdHUprhT+dzt+OvA=; b=Sqn/LN1WkDJdPGdGLfB/RjQCEMRWxVYe120t3R3CXD66+IOcx4HxvAoEFyjnvzuvmH zmCjNg/KLfTGeW6apFQXN9bVz3nxtIoJE104ul5Z9pQk4X1QEbmaUqf0i39D1Suikjw/ xBxuYGNrVr4FRXb+asjWALL4HHExCnXkESK9dJUmEsrhQr0uuyCYv+6/kxDub9jngy6a aktiBKsqitgO7xViKG8TdusNG7npI7QENoXEdj61gzbLog83h/oMYCaGdu0ZVfgfKLgA moQNXNLHFYGlu63qeDzVbMNtnlk09D/evsdNOKTBAzOrAmg2PDI5FIQ11uZJbKa751sj V4Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686307764; x=1688899764; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6EMxC9YLsY0bROTkA0K5UDqhCf1EdHUprhT+dzt+OvA=; b=O5O+9XiF1SjJXGLWqyP923SErj3OH4HJ7Ii/eUiVGRhwy0DbrAzcUv/sW/+3Efw6op C78SgYdKPyF9DNaWj1yqcLn+gCeW0gr2Gmg8gTG4g2xjMrEfFjrdZqKTHtzcfywebnAq ZNSdjJhqygTVxdG7glHCo4qHItOoy+5CxZdfN9YJTbbNEeotAtDStEdrVlZE6xYZzuOR 63arnKEAZcvB3FmdnBywSbv8WDxzqlaK6UxkHUeMUbwrc50lfWjTKs+aG2AEkVeVIUGN LnIXlJluItFNLSeRY14VBG2OP4SIi1RYbW6FPR9pCTo89A7G2UzVLPMvnasytxsYq1yN G3rg== X-Gm-Message-State: AC+VfDylPMnw4AO/KEqNUZQ4t/aNcYC+wJ6OAsgKihRtjfzdUpl68NDs xf4V7ORxVugLFh18uG3qBJjm2JEAyYDHSR8L1Xu7Xg== X-Google-Smtp-Source: ACHHUZ4l5PHvCCsIR23xZFnufv9SY4w+VFWo8q/ZRDvep14vtcOYJcEfhxrAdeGeOB6KhnA7h6VA9g== X-Received: by 2002:a7b:cbd6:0:b0:3f4:f7c2:d681 with SMTP id n22-20020a7bcbd6000000b003f4f7c2d681mr864169wmi.29.1686307763908; Fri, 09 Jun 2023 03:49:23 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 19/22] target/arm/tcg: Reduce 'helper-sme.h.inc' inclusion Date: Fri, 9 Jun 2023 12:47:14 +0200 Message-Id: <20230609104717.95555-20-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230609104717.95555-1-philmd@linaro.org> References: <20230609104717.95555-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1686307775412100001 Instead of including helper-sme.h.inc via helper.h which is included by all TCG files, restrict it to the few files that require it. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/arm/helper.h | 1 - target/arm/tcg/sme_helper.c | 5 +++++ target/arm/tcg/translate-sme.c | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/target/arm/helper.h b/target/arm/helper.h index 5471d6e5d0..c1fb9b7b50 100644 --- a/target/arm/helper.h +++ b/target/arm/helper.h @@ -559,5 +559,4 @@ DEF_HELPER_FLAGS_5(gvec_uclamp_d, TCG_CALL_NO_RWG, #ifdef TARGET_AARCH64 #include "tcg/helper-a64.h.inc" DEF_HELPER_FLAGS_3(set_svcr, TCG_CALL_NO_RWG, void, env, i32, i32) /* SME = */ -#include "tcg/helper-sme.h.inc" #endif diff --git a/target/arm/tcg/sme_helper.c b/target/arm/tcg/sme_helper.c index 1e67fcac30..95db4b7861 100644 --- a/target/arm/tcg/sme_helper.c +++ b/target/arm/tcg/sme_helper.c @@ -29,6 +29,11 @@ #include "vec_internal.h" #include "sve_ldst_internal.h" =20 +#define HELPER_H "tcg/helper-sme.h.inc" +#include "exec/helper-proto.h.inc" +#include "exec/helper-gen.h.inc" +#undef HELPER_H + void helper_set_svcr(CPUARMState *env, uint32_t val, uint32_t mask) { aarch64_set_svcr(env, val, mask); diff --git a/target/arm/tcg/translate-sme.c b/target/arm/tcg/translate-sme.c index 571bc10471..4396b649e1 100644 --- a/target/arm/tcg/translate-sme.c +++ b/target/arm/tcg/translate-sme.c @@ -31,6 +31,12 @@ #include "exec/helper-gen.h.inc" #undef HELPER_H =20 +#define HELPER_H "tcg/helper-sme.h.inc" +#include "exec/helper-proto.h.inc" +#include "exec/helper-gen.h.inc" +#include "exec/helper-info.c.inc" +#undef HELPER_H + /* * Include the generated decoder. */ --=20 2.38.1