From patchwork Wed May 7 23:42:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 888159 Delivered-To: patch@linaro.org Received: by 2002:a5d:4683:0:b0:38f:210b:807b with SMTP id u3csp633965wrq; Wed, 7 May 2025 16:50:11 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVuLL+nNh9kH3LvuLGEOs6aC9vGMgdKCP2iWu+ycTCPWw8HF0KjRkNc/75H1BEAcJtzKTtZLg==@linaro.org X-Google-Smtp-Source: AGHT+IF0GQANvtU8vvD6LjQmKdT/YDDWofX4NGGoYiNS7lrLXIzvXrxnoFhNsbwhXFXX9jNcNS/X X-Received: by 2002:a05:620a:4083:b0:7c7:a5f6:2633 with SMTP id af79cd13be357-7ccf9dffa03mr191087285a.6.1746661810849; Wed, 07 May 2025 16:50:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1746661810; cv=none; d=google.com; s=arc-20240605; b=lgNolZBhyItuENwrPz4AD5QoRukECmgB4jM4w3dbee378v8chP7c8J6T/XQNeedn2E TOXHrBDraTS6WShrjApcGcK0r/m9IW2hL/+nauKTxtCLqreUKvQeVXwcTm+tT632Bv3J mIk7GeZ+6UzHJNQUsuPzvgZp2FDBw2+H0th7m0Kyv8ttZrCZqxm7fURGIpGbVA1ExGE7 FNxW29w8HBIr4ybta+GPLh2G3RKKAhvnSApc0LLVrbPETOP5G18iWHqRlsNTqLe9jLk5 wsphukk+fh5gC2K4dr5vcXooB7o9qPaRitzfIO4Q5OzcOBoreTZhRebIj0tycmlA1/OZ Uzbw== 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=XN9bpcu/hK+eTVDHriw8+8GBLuzv6l51ao11Y0jPFbk=; fh=Zbxy5TRiDd+Eff0zsN+2XmZYe/TihsWpxb97dHV4h78=; b=JDlusVp5sxdLb5eRv3qKEeOWkWmaiXZKGT7wOipzSl7ZtaIOftw2QiHNqpC4OIEAKk K1x5J+nIH2QqS5MTR1BKFySUJjJWknd4Ttwq/9PsLQKBRuctDjEuEfCFu6ELxS7byBXj J+a4TXZQYZbn0XHc9pyehOsU2fs/ER/xiB4zc07S3ItZiNJoEM1LmebUTPRP0BRPCo4m NtL4bwskzL4neNmDy7kgwwnk3op0ewr+lEgBH+p2VnHA0nOE1nvAkDR5iHesW38SjQsa EPCmjF+oTnx5/X4CbNrBynFduJnPAAhWAcb1IEwSr90CUZBNtkoijnZdRVJ4DDw+HizE zV7Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="g5b/YZ7n"; 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-7caf75951desi316983185a.254.2025.05.07.16.50.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 May 2025 16:50:10 -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="g5b/YZ7n"; 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 1uCoUW-0001sy-Cj; Wed, 07 May 2025 19:47:58 -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 1uCoTb-0000bU-8J for qemu-devel@nongnu.org; Wed, 07 May 2025 19:47:02 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uCoTZ-00038w-Fg for qemu-devel@nongnu.org; Wed, 07 May 2025 19:46:58 -0400 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-22c3407a87aso5763555ad.3 for ; Wed, 07 May 2025 16:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746661616; x=1747266416; 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=XN9bpcu/hK+eTVDHriw8+8GBLuzv6l51ao11Y0jPFbk=; b=g5b/YZ7n23T0+UoTjfxGOCXGbxuUn8+gaNOPObtD9zNjfe8IakI7M+1Ie9XOg/nULB rhdViX3mdkPPOD+dOAwT3jMHMlEUjfdEROJUmtPPqUFgyBhdG3YgWbV1D5Ey5hpTFT4B ALcXMeQ7YGwELNC0qCuCUR38LFmDmzVo8e9chpSdkxf6ops82plpA5qpU2pt6AquVPfv /+cSM88VjEDSgb8Q2yRsqgcopXCQhv/8tPIhD0l6Pg7XOaMucFD+t/bpYB+Ej52Z34Gv bz3QtcQb6LgMM3KCoWMniJlY1od54H/2hU0/DMls6rZ5Pe1laSd7kdeqWaqAaD4UD4Wp H6MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746661616; x=1747266416; 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=XN9bpcu/hK+eTVDHriw8+8GBLuzv6l51ao11Y0jPFbk=; b=q8AhNOfut3xQSW4gH7Ax0flvkuBjDvOOrdGvq/AILdp29rbPwdPPAOGebn4lvfvG7L 9AmoF1W66qcBJcIY8BwZDuQ5YruLgXBOKBd8NZmdi3xq+mH49UN0E4j8nMKmPqeTVSyB vG1yFN4x2yW4WadO05IFFjYTDSbpxedUC9aWh5vW4540rXWP+vB9lzWdjr8utS9FNk57 H8tHJfd4YvNwzMIwilSo9vSKkSIZ0myaUq6tJMRITl/1C4vOur6+nsvXnTDmF2ZB/Bsl xhgwsCdAhMf+dTSCqlm7UW/u7NhND3kC2hCJovJZ9yX06OnOE9ApipeXYG0WjTKRXmbp YFAg== X-Gm-Message-State: AOJu0YzJLImWJDgFd1kYyAY8ZCv7ffiGLAWKryOI2LvjG07CfGs8PeDy gSLTWzFTI0u2c00srWFmzH/jyi+fawJUS7iyRVMhaEZKWCI8yZLgb+3ciC6bs5/7IPWZ0wTbbzi 2rGCQAQ== X-Gm-Gg: ASbGncuyFAJnPFoq06hyydV1H76vsd/UXVKA3SToUsmtGoZU/H0wxcAlQewNA9C0Zsa xAxWh2EBzVKscTMGnih970EPZRnMrcvgCrQCiiObZRZEtuLgrscZAgOjWZN+2belhz2+5krJeOZ hm6eR/U+eLu+I41QxGIYgwbT5LpOzEz+w1R83eumBzY8Nc7JhUE+u33sFu4UUNafUPtRtdj8KXJ 9GtQMpVUL7oLKBxD3bsYP52SMM3IR9CCbls8XoWIzZFyrpkvUYt67//7oOSBGb1iT/wb+4YcVIL ZKpwv4NuHfPcTp3yph5qU9pVmYu/oBi1YSZ585Elm13t4My/85U= X-Received: by 2002:a17:902:e80e:b0:22e:5a10:fc38 with SMTP id d9443c01a7336-22e8d7c843bmr19512495ad.41.1746661616140; Wed, 07 May 2025 16:46:56 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22e151e97absm100792435ad.62.2025.05.07.16.46.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 May 2025 16:46:55 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, anjo@rev.ng, Peter Maydell , Richard Henderson , alex.bennee@linaro.org, Paolo Bonzini , kvm@vger.kernel.org, =?utf-8?q?Philipp?= =?utf-8?q?e_Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v7 45/49] target/arm/tcg/tlb_helper: compile file twice (system, user) Date: Wed, 7 May 2025 16:42:36 -0700 Message-ID: <20250507234241.957746-46-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250507234241.957746-1-pierrick.bouvier@linaro.org> References: <20250507234241.957746-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62c.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 Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- 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 d9e6c827d43..23c72a99f5c 100644 --- a/target/arm/tcg/tlb_helper.c +++ b/target/arm/tcg/tlb_helper.c @@ -9,8 +9,9 @@ #include "cpu.h" #include "internals.h" #include "cpu-features.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 af786196d2f..49c8f4390a1 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', @@ -68,9 +67,11 @@ arm_common_system_ss.add(files( 'hflags.c', 'iwmmxt_helper.c', 'neon_helper.c', + 'tlb_helper.c', )) arm_user_ss.add(files( 'hflags.c', 'iwmmxt_helper.c', 'neon_helper.c', + 'tlb_helper.c', ))