From patchwork Mon May 5 01:52:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 887432 Delivered-To: patch@linaro.org Received: by 2002:a5d:430f:0:b0:38f:210b:807b with SMTP id h15csp1825055wrq; Sun, 4 May 2025 18:57:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXlBhrr0urIeypK3NEPNTS9NUHhYkCjymmoqD3u8IyoYLwXxin2Ysk7IMLw/UdwKJ9zL1wq7Q==@linaro.org X-Google-Smtp-Source: AGHT+IEJBaL1K9T8lPGcs3nR1TyQIUnf83F/GnPWCxD8iCneLzSNg7XtN6ch7IA1rXe086fRa90I X-Received: by 2002:a05:620a:4094:b0:7c5:5cd6:5cf2 with SMTP id af79cd13be357-7cadfdd209amr828673385a.17.1746410277648; Sun, 04 May 2025 18:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1746410277; cv=none; d=google.com; s=arc-20240605; b=TRuWFuerpRy8wp57FX0dBmH9aSK81QC5td0D+U9uf399CkBHukP7s5jMoP9lw1+Llj ExkYtl1pfM0cRFKQ5s6YrHAe/lwFh2bac8PopaK0vKx/SA1u2jZgIF5kUBXXEd85tCea fbqmU6TpOEo2x5zqICJbLpV7AD8GueGp1ueVMY/E3T0UJ5IFafAPrdnqh8I4ZlaI/s0U Be1NxTQAeozqb7ZC3urmyUhPn2wHUK8qbmWtP9WKQQV/TQpy8BicGD0dEOVsITQgDj2o IKfX/3stoO3Ld2yxYmsOabIkFpeyfbPYk5fIOP1NLM7BSvK54hcvsW4axjuXL88z3xem zRaw== 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=yGt1YesVdMfmP76X8zMo/3VD34v2vwkTupFXjn4DlBU=; fh=NjGqp/B1Bwp2wtTnyHxTvlXYBfwRSGY9cE7hmKIZquY=; b=P8UvMGihsxo27EXm9Ykm9B/swkopq+lrUZNzdWKlXof7wWWCn7DSzLXkcsicdSMrwR YfEDyGcMycZVIWZJPDoKaKJMhH2qx6WfFbFAJnv70eUM9GI187go9BKlnpTMxQ9SEWSg R6wIUz5W5UVO9/BLHxtnyNqmaIfS5EnZQmstV3CsMtA4Cjlwxv5L8p8+oTm4upqavODv tgN7CsSi5h8e6YnjIN6T0DckqLsc7qmgnU79b0wOyat4USQDePBHPE1hGyUpJwGjjDdg zFKqRqv5mgoYermdrnnXEcFr9tO2gx0nIos1TLsor7DZaN9vWeRvF1CHr/Oe8/3hC1hS BiSg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EUUUaIeR; 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 af79cd13be357-7cad23b9bcesi772327685a.86.2025.05.04.18.57.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 04 May 2025 18:57:57 -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=EUUUaIeR; 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 1uBl4a-0003LB-FE; Sun, 04 May 2025 21:56:48 -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 1uBl4J-0001qQ-Nc for qemu-devel@nongnu.org; Sun, 04 May 2025 21:56:31 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uBl4H-00036S-Sc for qemu-devel@nongnu.org; Sun, 04 May 2025 21:56:31 -0400 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-736b98acaadso3553722b3a.1 for ; Sun, 04 May 2025 18:56:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746410188; x=1747014988; 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=yGt1YesVdMfmP76X8zMo/3VD34v2vwkTupFXjn4DlBU=; b=EUUUaIeRvLllP/Nv9+0pilZo/marW7VCwS4sObBecgKHkzJKbvX3aN+OogjjdOpEVK 0jUt0eavgg0X41hd00Gy5b+yaEWYQw5+nU2KQsjAadC9fncX9QRs+UsvfwouxGZqAN6x j97Tb/TD7AFqD9uUVJld5N3EBB4GjifUf/YisJrVM3jOzFY9MV8icQzMqDef0dbjM23r Z4Zi/3SxCgkjViepIhPFPBRvVJDG3wk14lmkvn3OV6DN0GcIQzDTZudgp4uvKjfxuG5a gXGwj4g2qYN8OWh/Tfkps1tVRpopvN0ZtXzIvzsGnVwjq+iPGDKGe6YTWFqoFeYKpzIw 0vcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746410188; x=1747014988; 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=yGt1YesVdMfmP76X8zMo/3VD34v2vwkTupFXjn4DlBU=; b=uvpuNTV/4AtyouzLdTy/67BBEffoUONebce82bbMHTHY/YmS1OkJ8zMJ3OhsAUIS22 qYNLG2eGmbzxiMDZlfhgnnYPmMPIlw9mEyt+kNX4BastCnb0ufgsWbc+9e1O5ASwccPw Loy/pNiWbc1weXNOy2spdvUg87u07OIOedExLEa34AZxoW9F4gI3f3Q1x9BJB8sD/D0/ i7sE22ENfx/zb5CnLcEEL0srh6n4HeAgSaaixIzEcA5vqXQrTdeAucS+bmCaWCcmuVvR 0UZW/QPz1MWVmkoVu9N+4G19/01LOouTD1ZnOp4ICpG04hk9HwA8ihGXVEXc945gAv4u WaTg== X-Gm-Message-State: AOJu0Yyr9YzkWgnnV+LpuVlKKhOgi0FcPeLUpAm1lhjfMmAyZU9zLMai itXguQI6mBe4/DOKb+EilWVVnkrFbXJY2bAi71eXhpDOSHbvDXHZjH1DMAuLdiDy54vKSfVZnY6 9Zzk= X-Gm-Gg: ASbGncvDYr4VnzkEKQVo12mRf0Q2qDDguv9gp2MpMl6XxuN48vJGtZ4a5vvO6WVoDwI 52EvVQSVbyqGuyXvQfgj5eU4/WoNQzAsPo2XikW20is4+bF5WQ8nyEgnkm5+O30sB10wN9CrBna PQoLde7MkNthPk4tPnz8Db4Yrni649ZmUnV06GI1SeDH6cdeNvUg2HjhfRwjrR5kJBkrhkWJ5i1 uFqTfP8Sg8S1RqIKR71Wm55aglHqPntg1nZUOwoQycLShSgdi1JfBKG1J4txTBIUWfUto30hpVq u4tkxGpz7MtOIbo31cv9OUCDvDOoanZQmgXD8t7i X-Received: by 2002:a17:90b:548b:b0:2ff:5a9d:937f with SMTP id 98e67ed59e1d1-30a5aec1bdemr12746063a91.24.1746410188524; Sun, 04 May 2025 18:56:28 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-30a47640279sm7516495a91.44.2025.05.04.18.56.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 May 2025 18:56:28 -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 45/48] target/arm/tcg/tlb_helper: compile file twice (system, user) Date: Sun, 4 May 2025 18:52:20 -0700 Message-ID: <20250505015223.3895275-46-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::431; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x431.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: 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/tlb_helper.c | 3 ++- target/arm/tcg/meson.build | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/target/arm/tcg/tlb_helper.c b/target/arm/tcg/tlb_helper.c index 4e3e96a2af0..feaa6025fc6 100644 --- a/target/arm/tcg/tlb_helper.c +++ b/target/arm/tcg/tlb_helper.c @@ -10,8 +10,9 @@ #include "internals.h" #include "cpu-features.h" #include "exec/exec-all.h" -#include "exec/helper-proto.h" +#define HELPER_H "tcg/helper.h" +#include "exec/helper-proto.h.inc" /* * Returns true if the stage 1 translation regime is using LPAE format page diff --git a/target/arm/tcg/meson.build b/target/arm/tcg/meson.build index ec087076b8c..9669eab89e3 100644 --- a/target/arm/tcg/meson.build +++ b/target/arm/tcg/meson.build @@ -33,7 +33,6 @@ arm_ss.add(files( 'm_helper.c', 'mve_helper.c', 'op_helper.c', - 'tlb_helper.c', 'vec_helper.c', 'tlb-insns.c', 'arith_helper.c', @@ -65,10 +64,12 @@ arm_common_system_ss.add(files( 'hflags.c', 'iwmmxt_helper.c', 'neon_helper.c', + 'tlb_helper.c', )) arm_user_ss.add(files( 'crypto_helper.c', 'hflags.c', 'iwmmxt_helper.c', 'neon_helper.c', + 'tlb_helper.c', ))