From patchwork Mon Jun 19 15:54:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 694073 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d91:0:0:0:0:0 with SMTP id b17csp2441869wru; Mon, 19 Jun 2023 08:58:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ40y6FRIiAIyrYA9q0SqtX1bUFYOWE9XMnPXQ9gd0MQnKO2QMr00tkeSWQaRRL6g/9j8MVv X-Received: by 2002:a05:6214:1242:b0:62f:f071:65fc with SMTP id r2-20020a056214124200b0062ff07165fcmr13983629qvv.1.1687190309852; Mon, 19 Jun 2023 08:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687190309; cv=none; d=google.com; s=arc-20160816; b=ON3VvnRo1N0aJFMvdxNt/juXzaaXhxfHA8UQntRBh5QBWuqnZWQoVvneB844nbCRkV wJ1bgVEFYsQWcafn2Uscc/tCV2atoXide4Izuu6edQDYj1TkMQ9j5UDUp4xwlEdN7+1Q aNCVMyerTqtXssOtjJfxuTCoZS7KQk3WBRJ+ONhk1cpyX8U0l/f0Y5ECAX3NSHJITm4C EsFlCiqV7kR0hkedXIl9OdcDLHJUuWY1XCUp31su51Jv4T8xBcklljTk51z6DcJKFtrs d3oHLPeUUmCwaU6GGCGrvbxdnzp8o9OODsbbdObiMArBwULU/U9OIIR9zzwyV2nEKVrN BiXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Z2jMOqP0txK9r7JLBWhB+MQlTl1Nm4HNVxv5EqHk7Co=; b=AgdJepyIZYuRGhebSMG1hR5+KxFwpaniW1G3rrLVzYp/uHBbGrVyuNm/5QyiHH70lk 7uvyuMefcQsGTiJ2yrXmNxVfYIbpOHyeVvSmmJBc7RYlmjIo6mnNP+SH0MFHTJ/IzmIw cqTvnvj0dVSSl6IR+A3DBjZDZMQmruzT9kyoEN5NQDp0MQCwjA3AKw2s1IORYIFJrmk1 kLRGEgyQsQnoaFYTLPxUrsZFzsqfHVRGgYcyGJ4x7nbG0oqUtxNZBqpbZzEcS16/e4iz 3l6GJI5sWlJSO9oQOS/JyFpbZ2Mb4gSmKuy09xl8WaYNo0w9TymDvrG7IAVoXdDVHaM4 nHIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HvJ5gDfb; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id cz6-20020a05620a36c600b007468ed614dasi47408qkb.620.2023.06.19.08.58.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Jun 2023 08:58:29 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HvJ5gDfb; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBHEy-00078g-Vw; Mon, 19 Jun 2023 11:56: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 1qBHEw-00073x-T9 for qemu-devel@nongnu.org; Mon, 19 Jun 2023 11:56:26 -0400 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qBHEv-00053A-0w for qemu-devel@nongnu.org; Mon, 19 Jun 2023 11:56:26 -0400 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5186a157b85so5216465a12.0 for ; Mon, 19 Jun 2023 08:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687190183; x=1689782183; 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=Z2jMOqP0txK9r7JLBWhB+MQlTl1Nm4HNVxv5EqHk7Co=; b=HvJ5gDfbl9YzJXddB419cG8Jy22v7qYW+IWMmXC/NguxSSjFaRbwjLywt/708UxNFa 631CEdOWHKNwQ9/WekHHt6bC5tShbjBsUIRTBwbf+A15Aj/A7w81s6SqMN3DdrNXhNIy GR8zMDHLYcDrTd0IGdbWohjS6NebK6xOjIQrgBhtdeHFRuz67Q7twvsRtsI4eTUJ4tgw yWc4y9p7JreLrr5Sr6xLheMXK6Mn6tgdelFKZgd3gHTcj2RhCyw+y9VNKoxe05EZLYHx HTKUyJ0+86MEmfTx9/N2pJy8IpYeHkCkmyGxKhnCEzPA1W9qv5IdtBK7ML5x35cwpzrg 275w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687190183; x=1689782183; 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=Z2jMOqP0txK9r7JLBWhB+MQlTl1Nm4HNVxv5EqHk7Co=; b=VEruCoIkWCClLXPHj8JgYJ4x2M1ThlOSM23XxwL4Uey3ogvBRvgYUxsIfkujQS68Kt ALW/8o7uJuUmIlB+olBohSFMfvpaxwns6dFOqhK5CIclbQJbXcegjHKEpArhf5Xke8Ce Er9T7lgdToQKiEQnBtfTauz4Fcftv8A3ekdIZ0Eodw9ZUIWfJX9SosYfaX7sHPtMw9qh yhcQJg5KiHdXIvWb0Cah3J+vjaEkRBMXdUuNKRbdsBYtEFuoUGxN7HvI1Dxl2tf+BQUh 2yl+F9BusKOrN5U8JKWRvqudZFrfQ5XB0DtSIOf0uKLLvPQ8Tgzar+Q+O/iQEOKiAzIT mvhQ== X-Gm-Message-State: AC+VfDy+J+rLQ92uoPhMvyxIbJ9H5yEDAS/mmfbqE0we88NmAV1e3OOu kRlmVqLH7/dNtcaxLoYNMYxkfKt6j8j9ny6hHK0X8w== X-Received: by 2002:a17:907:1c07:b0:94a:8291:a1e3 with SMTP id nc7-20020a1709071c0700b0094a8291a1e3mr10347732ejc.74.1687190183292; Mon, 19 Jun 2023 08:56:23 -0700 (PDT) Received: from m1x-phil.lan (sar95-h02-176-184-10-225.dsl.sta.abo.bbox.fr. [176.184.10.225]) by smtp.gmail.com with ESMTPSA id lo25-20020a170906fa1900b0098692f1b803sm4425152ejb.166.2023.06.19.08.56.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 19 Jun 2023 08:56:22 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , qemu-arm@nongnu.org, Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH v3 20/34] target/arm/tcg: Reduce 'helper-sve.h.inc' inclusion Date: Mon, 19 Jun 2023 17:54:56 +0200 Message-Id: <20230619155510.80991-8-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230619155510.80991-1-philmd@linaro.org> References: <20230619154302.80350-1-philmd@linaro.org> <20230619155510.80991-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=philmd@linaro.org; helo=mail-ed1-x52f.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Instead of including helper-sve.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é Reviewed-by: Richard Henderson --- target/arm/helper.h | 1 - target/arm/tcg/sve_helper.c | 4 ++++ target/arm/tcg/translate-sme.c | 4 ++++ target/arm/tcg/translate-sve.c | 6 ++++++ target/arm/tcg/vec_helper.c | 4 ++++ 5 files changed, 18 insertions(+), 1 deletion(-) diff --git a/target/arm/helper.h b/target/arm/helper.h index f347305c0f..38d3d1a2f3 100644 --- a/target/arm/helper.h +++ b/target/arm/helper.h @@ -148,7 +148,6 @@ DEF_HELPER_FLAGS_3(crc32c, TCG_CALL_NO_RWG_SE, i32, i32, i32, i32) #ifdef TARGET_AARCH64 #include "tcg/helper-a64.h.inc" -#include "tcg/helper-sve.h.inc" #include "tcg/helper-sme.h.inc" #endif diff --git a/target/arm/tcg/sve_helper.c b/target/arm/tcg/sve_helper.c index 8a0d966aae..79a42af591 100644 --- a/target/arm/tcg/sve_helper.c +++ b/target/arm/tcg/sve_helper.c @@ -33,6 +33,10 @@ #include "exec/helper-proto.h.inc" #undef HELPER_H +#define HELPER_H "tcg/helper-sve.h.inc" +#include "exec/helper-proto.h.inc" +#undef HELPER_H + /* Return a value for NZCV as per the ARM PredTest pseudofunction. * * The return value has bit 31 set if N is set, bit 1 set if Z is clear, diff --git a/target/arm/tcg/translate-sme.c b/target/arm/tcg/translate-sme.c index 24796e5d9e..e63b9883a9 100644 --- a/target/arm/tcg/translate-sme.c +++ b/target/arm/tcg/translate-sme.c @@ -25,6 +25,10 @@ #include "exec/helper-gen.h.inc" #undef HELPER_H +#define HELPER_H "tcg/helper-sve.h.inc" +#include "exec/helper-gen.h.inc" +#undef HELPER_H + /* * Include the generated decoder. */ diff --git a/target/arm/tcg/translate-sve.c b/target/arm/tcg/translate-sve.c index 605cce0979..87f92b4d1d 100644 --- a/target/arm/tcg/translate-sve.c +++ b/target/arm/tcg/translate-sve.c @@ -26,6 +26,12 @@ #include "exec/helper-gen.h.inc" #undef HELPER_H +#define HELPER_H "tcg/helper-sve.h.inc" +#include "exec/helper-proto.h.inc" +#include "exec/helper-gen.h.inc" +#include "exec/helper-info.c.inc" +#undef HELPER_H + typedef void GVecGen2sFn(unsigned, uint32_t, uint32_t, TCGv_i64, uint32_t, uint32_t); diff --git a/target/arm/tcg/vec_helper.c b/target/arm/tcg/vec_helper.c index b0aaca38e7..99f81df9e1 100644 --- a/target/arm/tcg/vec_helper.c +++ b/target/arm/tcg/vec_helper.c @@ -37,6 +37,10 @@ #include "exec/helper-proto.h.inc" #undef HELPER_H +#define HELPER_H "tcg/helper-sve.h.inc" +#include "exec/helper-proto.h.inc" +#undef HELPER_H + /* * Data for expanding active predicate bits to bytes, for byte elements. *