From patchwork Mon May 12 18:04:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 889401 Delivered-To: patch@linaro.org Received: by 2002:adf:fd8a:0:b0:3a1:f579:ae88 with SMTP id d10csp1745336wrr; Mon, 12 May 2025 11:20:49 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXMYoEBTG0OAmuphVqwljfR49ZYJAG1CaHPiMN8NIcoq1HQpilYwX1ODNtPPBkqjZdX2gs2sQ==@linaro.org X-Google-Smtp-Source: AGHT+IHlzZC5Mn/hT8kiB+P2PsRcKxcCZETCaPEB1oJwL36rFEXsNBoeP9FaH57+YfnfUtksKqQQ X-Received: by 2002:a05:620a:2456:b0:7c5:4d22:2149 with SMTP id af79cd13be357-7cd011171f9mr2404682885a.30.1747074049346; Mon, 12 May 2025 11:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747074049; cv=none; d=google.com; s=arc-20240605; b=c1wd85zW7Aa3kW8gZv/tj7CAmVbK+1A6bPohJJ4Wy0Dlo0hwaMflKHPuRNWvS7RqCV 7OTm84LmV9DWWXCad9ncP4SSHa7F1vZjMLMRgCua4kAfwpgVzm+21ToQKGTDTszwRCli XH7DHZD2dSydmtYgdSB5NnQ3sDbcODsyZOY60w7uvfwv7SEOV2s5KdKti9FeyVwTf0ed ts4wx/mPhpq0SPZSnqVPVSABAzEKe75YzUgEpmEDBonT+O54PYEirLVflFc+3otPOWSZ HwfhAGeEAI68vgNRM8QNCaHdC5HM4biC0SR+tEVeELqH8/Qan5A1znQuvzyAhsGObDWy UKGw== 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=PlN3fUhDtems6Bb7y59zYD8EwBcqcc7pnzqldojq+us=; b=CPTg1nao9I0V99WmDo9s7OBXzBWHWAlAD3m75T8AGsGgGJuVd3T042O34KhDsmVzpd Q61rnP+hOMREdBXuOaBFQdRmhrJt2hsRVK2KGV3rBPFTn7Se0vAAu+dNS9cxtxvMaN2X oRjx8gZOWRwqTOK8ChpzaE+uJKyX1Y/s/vfBwRZB9t8a54eXDsakqf5tMyGRyL1DLQqR g3TSy3dVNq6oewT8gUlyCd9cTSD0sBXvs89+E6FiD7rShi9ySyRDdBJ+X6dEOtHpLyLU Lgh+AssTv67Ga0aqt4yQ6iA5GZWAXhzsH21yuGxgkl8t6HZWakkqpGKi9Lm98OmPQdtU 4SZQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ihjoNJT9; 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-7cd01022591si1012595585a.635.2025.05.12.11.20.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 May 2025 11:20:49 -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=ihjoNJT9; 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 1uEXdu-0005zt-Qy; Mon, 12 May 2025 14:12:49 -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 1uEXaG-0001aN-EE for qemu-devel@nongnu.org; Mon, 12 May 2025 14:09:01 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uEXaD-0000TF-CG for qemu-devel@nongnu.org; Mon, 12 May 2025 14:08:59 -0400 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-7399a2dc13fso6532534b3a.2 for ; Mon, 12 May 2025 11:08:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747073336; x=1747678136; 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=ihjoNJT9iVIv+KBFT56cdsu/uB/OQU0EiO/gYfZ1qQ4hyg6MAzfoV2NYZ6zz2davso g1w5lEIMRKApYePZLaaeOqRCkKY6dlC5S340AH1M3lSJ4/PqoES1G0aSC1Sz4OC7aR4f pSrxecjC67J26fxGM74nm4FTacPJabFFN1xPHQGrI1s5B5Awm+Lb4MhmYCMrfnCUxjtq 6HQ/aoa0fXwk0TUQlPR/M8UGbfo6e9UNP+m1gnmHaNq0M5W3EhCOEdvUMhk4e7fjDLfJ CMDJN2CXvUwi+i65wpNz3SOL7M5pxw4W2rRQpNmbIvMpodzpHAaG8XeAb9YAixLDkP7+ Y1cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747073336; x=1747678136; 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=FkJTNCPQ5LX9ss9jQI+Hq4v+MoF+TF1HM76BYOFPSLGwSFEuIKYykg0QGasCWMGPa6 /FUAkvWQCqF0vh6AJbt+z7GHBB8xtumA/fhjcIL0U0gBjU0LDLgREK0M9HqhKkDl0t2C 9y2SKZb9C7NJItQzR+Q9GZEJa0V1Z4+ByMrVgKs2MFJPXRwC+LROXjjYza1eOj454HBF Fs/UpiGyrUoZroRwtwEpKvK5ywvdq21KeBf7ObxXJw7Gu3JOiEWdRuxi8Ev+LM4nYCbl 9370SbQAoW6sMYlqKI4AfQhFdttZmV6R/y5faPnHriB17LX7d8b5uqQQr9thmeWBkpGr xnZg== X-Gm-Message-State: AOJu0YxVISQtAR+PFHErsjrvlDkgE4Jvs89oza9/4VcSxqhNnHRfmseN bFcKXmzKUhTQsNQLqdaA5Fsbl6jyGQYYeqe9dKEj6ukRIP6884N817CZQLflo1PQ4wOmu5h9Q8n v X-Gm-Gg: ASbGncsM0lOzAb+TqcIr12ZQa3jQKpJyydeJ9PVx3DMp/6CMn8k1h4x7QNZT0GON+Mz DJNAf19KJTcmLgfnoUXCiMEGJJiDqVqxObGsSCoCbyQVTDT2fqM/LmRr3CPLmoOsRqcllL0T1op jZRTbsicGCsv23DdOh28ehJKwot42mEhbdjHNSBBnT/0zUsGBty6v1uzUxjgjTTVzvNIlWYjUQJ M6acBOf1CFxyT0gTFqwX+8ydclj+MVfpK7YI4O5uy8A/ki8WoAQ6UY5VLWjE148Jh/PJwLixQFL 5wkBzLu+Gk+hrlA0VwPtk4JvdbshcxI8yWSvshAboZhP90haJK0= X-Received: by 2002:a05:6a00:9286:b0:736:3d7c:236c with SMTP id d2e1a72fcca58-7423be7d6d0mr18600353b3a.14.1747073335760; Mon, 12 May 2025 11:08:55 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-74237705499sm6438580b3a.33.2025.05.12.11.08.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 May 2025 11:08:55 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , kvm@vger.kernel.org, alex.bennee@linaro.org, anjo@rev.ng, qemu-arm@nongnu.org, Peter Maydell , Paolo Bonzini , Richard Henderson , Pierrick Bouvier Subject: [PATCH v8 44/48] target/arm/tcg/tlb_helper: compile file twice (system, user) Date: Mon, 12 May 2025 11:04:58 -0700 Message-ID: <20250512180502.2395029-45-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250512180502.2395029-1-pierrick.bouvier@linaro.org> References: <20250512180502.2395029-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x430.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 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', ))