From patchwork Mon May 5 01:52:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 887436 Delivered-To: patch@linaro.org Received: by 2002:a5d:430f:0:b0:38f:210b:807b with SMTP id h15csp1825316wrq; Sun, 4 May 2025 18:59:27 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWbRQ6vkqSSTywEqgnYauP+ywkAS2eUMeT1h69YrUP34fYYZeRjyrsbwTNYJmhjjEI83/N/1Q==@linaro.org X-Google-Smtp-Source: AGHT+IHXyElXpK1iLKhZv8efbgbg++qQ8Y2ptX0FcyXsitax6sAG4VtIqJR0/r/9kX8iqVoY/t1F X-Received: by 2002:a05:622a:261b:b0:475:531:9b0b with SMTP id d75a77b69052e-48c31354a0dmr204284071cf.20.1746410367272; Sun, 04 May 2025 18:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1746410367; cv=none; d=google.com; s=arc-20240605; b=MEVv2UlsVk0gB4D0m2TCxErolozpSCCUfBFhnhViPY5eCruG4kPkQI2xnSO4L+qiRL E3vVISyXq1eLDVmhVSgpE6XoG88pgCAedxQmzF7RrnnMM9rddEEnyGtBzEbdDtfGqaWi dcnGr8KeVGBPIj0DjyX8HpT7O4qG/NF3ezhwEKpLs6W1+OzNzlO6jZpdGccLrq5trB4u uwdT+HR109YD04YvRdyngopgFytzkn0wB1l1WZPmOmLt/yCU8p2g7RdeaP5QtyCWl4y4 g3zhGZF4UE7woYozqkrPbjywsJBW/pjq59feSmo0ozog29jx0Sr9DFiWVn3vzWowcJ4+ zFYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=nwtW3h2lhmGSEKiIMjkXffP91aavJQ5GIexA+kWESbY=; fh=NjGqp/B1Bwp2wtTnyHxTvlXYBfwRSGY9cE7hmKIZquY=; b=V07/9Duf459Z039VvRSHqfa95L7pRxoQ4KBE05CIFG8oFWbHT3vud04LaIsSPxcshu nNzVUMCx2Ucq02DuKnoM+Y3g5W4t9ifmmDbOsAQ1Gn1TGb2x0gW+gdGDSuH3TLiOCW4d 4n3WEDOG/GyuG8+E9HwZxuDpIGNh/eO8AF3VGGTXgd7oiAvSLbP14wCEymI1V4D0Bh/A yNJ0PBAIVptnfN9rXHBL4tRJnGCw17Wd0wEDATsdMq/xlLTqAkkMMZ3fUDGYnTCyWYon GhNYYPLjFzDRy7DHpZfBw2FKelmXMPanVylrets1iGFhZM6T7fpmI49ivgk2XUjTycym wu/Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u4uYnWzX; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-48b98724186si80638971cf.371.2025.05.04.18.59.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 04 May 2025 18:59:27 -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=u4uYnWzX; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uBl4W-0002q2-AM; Sun, 04 May 2025 21:56:45 -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 1uBl4H-0001d1-5z for qemu-devel@nongnu.org; Sun, 04 May 2025 21:56:29 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uBl4F-00035c-Em for qemu-devel@nongnu.org; Sun, 04 May 2025 21:56:28 -0400 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-30155bbbed9so3138842a91.1 for ; Sun, 04 May 2025 18:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746410186; x=1747014986; 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=nwtW3h2lhmGSEKiIMjkXffP91aavJQ5GIexA+kWESbY=; b=u4uYnWzXq9o/aYLnvXrASJ43lteLXhF2aMQsMjGG7W/iR2qlGA1Mx/M6afv+bXfiQu wALskGCKNKVz6sZwbPyrESM7i7IHkxL/rBC2jSzadXRN6rto+au6ybgUy0CbPtM3GoJO tLc6OgO4/S9ht7wf/q0yEUoPAZ4xYKwJpwrQ7I1s7IjMSQN7j2ylDsDDfOJmwtfqbwxm icBx5HTvSsnVHhAtkbKBn/dtXltY8xmy+AFNkI2x+PLHIILbqH90sal2ibNLGyQW2WR5 MnmnHtLwCMkdOery0HmxKAbzY6cDRBMeqisqBoMQkNPGsE7WIoGKfSWS7x/zIQpcqbKf Mdeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746410186; x=1747014986; 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=nwtW3h2lhmGSEKiIMjkXffP91aavJQ5GIexA+kWESbY=; b=H3GaCtIg1qLHfcC4D+9RC3CLUln8h/KDSGaQWqrIuPTGln/oe+R8CJWi+lQ/rVBiub CnwW7L+r7+MdmfDq0WlcISOnNMjLp4L9J9mRUNKmBFjQKhgZ81GTrciXq6XFZgkYa9qK 5kCVotipYQAQTCZh63BIoB048w59SXOn6c3dYL50I4XMeoqFycRjfENdv2YX2jgPqrM/ yaTcuGxN13z2hy+2GTZgeEwq+2PLngPSaNDkjkx3WGkGxYWBlOY5jrh/mu2w17QgsJ4Z yo7H2u7XCW2I3UFC1e+RGhjSB9NPDf+qtyJA66DccRw3OGpbUAIfexgFWovHxoGfQYeB k8qg== X-Gm-Message-State: AOJu0YwN3vhI5ndc5MscFlCM/kg5cZ9vChNQKZYjcWGJZnxk45jjVGbO 4nK7xq6ZycBsdQbdsBlOhScI66/3jrc3jGctyZVRzHyywlGYMV5IogCUQ5zomHgvPXZQO+dlU37 5Xd8= X-Gm-Gg: ASbGnctrxoheoKKnj+E8kZmqfHja31fjSU5VNtf5ddRIMM6rocpCCjg21TZnIf87mA6 lvI2KhDcA5uUshqJba219URBCFpCJgMuLTlthRiGHwzOSNa4dpu3ppqcmbPWp2+5XtRq8LSvt/8 xxhr//TH/3jVzoamzcLST1AcOan40vw5tR7QZ+/8PY9K3on0eLC0uh6lXjixwx9mRhR8BKdV21D 3QVrMKKG37Mw3Wm8BoTSB7Ww+ca4bpHt7ZbUdp4dYXQTpvKH357njV5po8okduW+1upnaghH21X 0sjyTEVK8DxWTcOCuKxEz1WKmsieilzwAbFmbUBu X-Received: by 2002:a17:90b:270b:b0:2fe:8a84:e033 with SMTP id 98e67ed59e1d1-30a4e5626f4mr18713516a91.2.1746410186079; Sun, 04 May 2025 18:56:26 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-30a47640279sm7516495a91.44.2025.05.04.18.56.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 May 2025 18:56:25 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Paolo Bonzini , qemu-arm@nongnu.org, richard.henderson@linaro.org, alex.bennee@linaro.org, kvm@vger.kernel.org, Peter Maydell , anjo@rev.ng, =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v5 42/48] target/arm/tcg/hflags: compile file twice (system, user) Date: Sun, 4 May 2025 18:52:17 -0700 Message-ID: <20250505015223.3895275-43-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250505015223.3895275-1-pierrick.bouvier@linaro.org> References: <20250505015223.3895275-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pj1-x102d.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=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 Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- target/arm/tcg/hflags.c | 4 +++- target/arm/tcg/meson.build | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/target/arm/tcg/hflags.c b/target/arm/tcg/hflags.c index e51d9f7b159..9fdc18d5ccb 100644 --- a/target/arm/tcg/hflags.c +++ b/target/arm/tcg/hflags.c @@ -9,9 +9,11 @@ #include "cpu.h" #include "internals.h" #include "cpu-features.h" -#include "exec/helper-proto.h" #include "cpregs.h" +#define HELPER_H "tcg/helper.h" +#include "exec/helper-proto.h.inc" + static inline bool fgt_svc(CPUARMState *env, int el) { /* diff --git a/target/arm/tcg/meson.build b/target/arm/tcg/meson.build index e3be0eb22b2..8623152a645 100644 --- a/target/arm/tcg/meson.build +++ b/target/arm/tcg/meson.build @@ -30,7 +30,6 @@ arm_ss.add(files( 'translate-mve.c', 'translate-neon.c', 'translate-vfp.c', - 'hflags.c', 'iwmmxt_helper.c', 'm_helper.c', 'mve_helper.c', @@ -65,7 +64,9 @@ arm_user_ss.add(when: 'TARGET_AARCH64', if_false: files('cpu-v7m.c')) arm_common_system_ss.add(files( 'crypto_helper.c', + 'hflags.c', )) arm_user_ss.add(files( 'crypto_helper.c', + 'hflags.c', ))