Received: by 2002:a17:906:fcb7:b0:974:3dd3:6e73 with SMTP id qw23csp1369401ejb; Sun, 11 Jun 2023 01:55:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ592we/7CeDwpk4NlD7RbN8cNwvALvYIkOOubnRv1Vy+nKJqjLey4yWGrusrddZVbrtCQ6f X-Received: by 2002:a05:6808:1489:b0:39a:aac4:4192 with SMTP id e9-20020a056808148900b0039aaac44192mr2500104oiw.17.1686473711101; Sun, 11 Jun 2023 01:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686473711; cv=none; d=google.com; s=arc-20160816; b=ZgB31PVIBmQB2rLVaI256KjKLtLeFqzqz5UUJaOZEtjM42ArXRhU9q4RQmKvK+9W+p /7/myDmSDURI1yc/QLwm/R0Ozoj+gId07jFqCGA+nP7d1vEt2B/us57+D2eTACeo7JIz hC2kW9GzAFE+SVefvP5JsYfxcC53alW0ZM8qXXqUaQ8qMbVp3u5yTMaV+TUQ0MGUlkc6 iczDu6ea7VZ8GGqQaT/kMsg15TPc3XvavZYAPlhNGRe9cYZ64krSKM/twF/QjKYAO4vM zszrdcDx95mYN1xNnHbgfSbAujjeSzFtzGWEwLVCuIYABq3hghB3Edtey1uMd0kja4oq 1S4A== 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 :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=HrCPFIlv9L7Z0OO56JsRw0LaQxQ2vbRBrtIUtJNMoKs=; b=HpVw4sliVl3+8rA/TJ413ZzwbABpAVyfoSM7MzhVreDyURthzqL7O+kjaZO6pr/dDD zFbclSdS93AzB66qzxnpdP1qHGsyR8LwFgzUdpirOjApIroY1p/Q+E0rODnLcK2V7FIC vP5hbEqal1Zo1JQTu2qiYSnkEXBVIsUka+8m4lQd1IrJmsJ+nyaoLbdrXlPkxgWvlcjJ MSHm5raTLYyQk2a4pJdu9a1AK+75K2gB/y6eczorNoLt5DF777rK+6ykTIGDqm3bFP6Z eF/nHaKVR0YLqKuPKcyTwzcsTI16Z07lzKByuceBJHKGus83RVfGK/JwygzS8feBgl1E AzCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZnX5KwR3; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=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 i4-20020a05620a150400b0075772297496si4403076qkk.353.2023.06.11.01.55.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Jun 2023 01:55:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=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=ZnX5KwR3; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=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 1q8GqK-0007hY-NC; Sun, 11 Jun 2023 04:54:36 -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 1q8GqH-0007gT-V3 for qemu-arm@nongnu.org; Sun, 11 Jun 2023 04:54:33 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q8GqG-0002EM-8i for qemu-arm@nongnu.org; Sun, 11 Jun 2023 04:54:33 -0400 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f6e13940daso34013005e9.0 for ; Sun, 11 Jun 2023 01:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686473670; x=1689065670; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=HrCPFIlv9L7Z0OO56JsRw0LaQxQ2vbRBrtIUtJNMoKs=; b=ZnX5KwR3nOHTx4vlugYOvVf62RkDiteu0uZQN4CIJf6OmiHWFXo8PDjeZfN6FFA7jo egecCqHanmsVdeQESWyJoFnjl12i7O02Rim4XYZrB7XPq6zTTUX6mL32wLOwMGg9shJX TwwF7UNxXVip5ZBEIwIj0P1SlQ8+A0BsNmRaF6mphKBsQcUiSJNGrkzzHHgXklmVFqfB jApqQCMcieOGkI/Cqq0Z+dGgDnFYs6KmJ9QrzmgPL4Ieg7D7/rrGEqmbhHx9A8GARFt7 jRNgqHWWl1xv6s+z7NE5GmBB70TlrZG65t1nszzRrNkoNdkBHnDSUh4zhgaQTRNzG/YP f6gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686473670; x=1689065670; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HrCPFIlv9L7Z0OO56JsRw0LaQxQ2vbRBrtIUtJNMoKs=; b=FzDLrsZ+KS9PBmHctI4wHE74ux7JeM9y4PgvboR0IcAHsNdvwgEMjleKla+rvlqeGm J+ahc2++gonR7HCQsWgRZD3yrmhE3pXzm3pDJpFl5vD0iKL+DcEtE9rqLbIa2coX6//s 1s1NjbTFQCCIZ5V0OLpxx+rogS+fpBKwMD1VuPfTWap9SARMxWoDVb1ITuP84APpmtnR 1donyuye/7rNaYpoTWrBzuQZV6b4XD9L7BKjZBYcpBtyOW/PgbSqpSEuSfhbRN0vcHGO 8NipqsH9uN8OErQMpSk+sHW7c8ojT57U274dEDdq3fyHNdGzmAeKj6NfUH1ETlA1TNeW Vn4g== X-Gm-Message-State: AC+VfDxAFZBy/xYVLZn3ManX4krkt8+S0njrOqTmWRANACrjvFNE/f8c BetYTGGscTiVbYOoSGPNbqhRbw== X-Received: by 2002:a1c:f70a:0:b0:3f5:d0b8:4a53 with SMTP id v10-20020a1cf70a000000b003f5d0b84a53mr5342446wmh.34.1686473670030; Sun, 11 Jun 2023 01:54:30 -0700 (PDT) Received: from [192.168.1.67] (91-163-26-170.subs.proxad.net. [91.163.26.170]) by smtp.gmail.com with ESMTPSA id w25-20020a1cf619000000b003f7f52c9988sm7866091wmc.21.2023.06.11.01.54.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 11 Jun 2023 01:54:29 -0700 (PDT) Message-ID: Date: Sun, 11 Jun 2023 10:54:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH 09/22] target/arm/tcg: Reduce 'helper-iwmmxt.h.inc' inclusion Content-Language: en-US To: Richard Henderson , qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org References: <20230609104717.95555-1-philmd@linaro.org> <20230609104717.95555-10-philmd@linaro.org> <5624531a-48ca-9d78-1046-108b8e4df603@linaro.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <5624531a-48ca-9d78-1046-108b8e4df603@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.google.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 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, NICE_REPLY_A=-0.09, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@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-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: RossMqYNKkhe On 9/6/23 20:59, Richard Henderson wrote: > On 6/9/23 03:47, Philippe Mathieu-Daudé wrote: >> Instead of including helper-iwmmxt.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é >> --- >>   target/arm/helper.h               | 1 - >>   target/arm/tcg/iwmmxt_helper.c    | 6 +++++- >>   target/arm/tcg/translate-iwmmxt.c | 6 ++++++ >>   3 files changed, 11 insertions(+), 2 deletions(-) >> >> diff --git a/target/arm/helper.h b/target/arm/helper.h >> index c4a321c0ea..dd12fee107 100644 >> --- a/target/arm/helper.h >> +++ b/target/arm/helper.h >> @@ -949,5 +949,4 @@ DEF_HELPER_FLAGS_5(gvec_uclamp_d, TCG_CALL_NO_RWG, >>   #include "tcg/helper-sme.h.inc" >>   #endif >> -#include "tcg/helper-iwmmxt.h.inc" >>   #include "tcg/helper-mve.h.inc" >> diff --git a/target/arm/tcg/iwmmxt_helper.c >> b/target/arm/tcg/iwmmxt_helper.c >> index 610b1b2103..fa84b5f672 100644 >> --- a/target/arm/tcg/iwmmxt_helper.c >> +++ b/target/arm/tcg/iwmmxt_helper.c >> @@ -22,7 +22,11 @@ >>   #include "qemu/osdep.h" >>   #include "cpu.h" >> -#include "exec/helper-proto.h" >> + >> +#define HELPER_H "tcg/helper-iwmmxt.h.inc" >> +#include "exec/helper-proto.h.inc" >> +#include "exec/helper-gen.h.inc" >> +#undef  HELPER_H > > You should only require helper-proto.h.inc here. Oh, good point. > Otherwise, > Reviewed-by: Richard Henderson > > This was exactly the sort of thing that I had in mind. Good :)