From patchwork Fri Apr 4 22:35:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 878206 Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp4005771wrs; Fri, 4 Apr 2025 15:36:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUsln2ZKTLTPRDJrPBemwT/EB5rC2/iKCHvFzfBuTrtjroQBHFqUzQQSaYWvBN1bz0OKD6K8A==@linaro.org X-Google-Smtp-Source: AGHT+IFK9cNTx+50sz/4Yj1QLXAp82Ib2gmgPtHTCndgLllcjB3pOsJwJR6RNCbbW40JvEm3eeEr X-Received: by 2002:a05:620a:371e:b0:7c7:5a9f:7a90 with SMTP id af79cd13be357-7c774d254acmr690131485a.4.1743806208684; Fri, 04 Apr 2025 15:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743806208; cv=none; d=google.com; s=arc-20240605; b=G4NB9LC8y4m9Xht8EBMUPt9900Zb0HC8pl9zXkypwPc9GnQYv+0CPvRbDtkRQ77NRZ AEiAEg0P+ygBSWzpEvVVo+klW65zG4y2kEgWlHL4uRzA+VIMwGZJU8JdNewj2cMSaX7n Fii+maykEPlgMxbOj5wuDjmOVRguDC2pQbsCdAm27duYCmqmwqvIIUzB6lLflr2HTOZt CAHnCjtqU3ZmocW3nWtDSOr/t1SW/paNIg0E1vwZW9r4XApgfcBXUKW0x4xtwwpIZcgx 1xHBn0NhPDoOVZS++36GtAyyL38qnC4hw/NAX3LtDHrLEymtOGvERM3XtmXOGJgP3y/L JyoQ== 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=3zxXxxM0ZRSeCFO7PrYLPbTvn2QmgWNDPLEa5BJ8v9o=; fh=089D9cN8gKCxRQaMV+d8/EwypuoUoS4FPKA8rjpOLh8=; b=hixqr65WlM2XbdBM2tDXV+Opit8orJZs+Bx72dbSiRzPbwJP7UkassDvFH2h0T/CcZ SE/dOFW6XVLbrOEAXReMdvBFKV7VAgunf/Px/U0xNlTMvhKZ/liIaNEicY8owQbSwZhH Hree4JJn/N/xJdtZy+UQePqLKDTBQOxGH2y1bAzqtBvr0A7CuOuqc3kCZdPfOQoz6qUp /f48V1Sa43fKpvfdqFJLnKSuxMbtzWTLPq3ys3AIFhE7BDD4k/ecQdh7U2HtjjLUe5UO IR36E8OOyU8J5qwQuidNATzOUz97g8kk5/w0dTlW607qx29uraKD7oNPyHLC2V+S1vNQ gLbw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WdR/0cOd"; 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-7c76ea86186si425402085a.336.2025.04.04.15.36.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Apr 2025 15:36:48 -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="WdR/0cOd"; 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 1u0pdu-0000n4-IU; Fri, 04 Apr 2025 18:36:06 -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 1u0pde-0000hk-R0 for qemu-devel@nongnu.org; Fri, 04 Apr 2025 18:35:54 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u0pda-0007yy-BV for qemu-devel@nongnu.org; Fri, 04 Apr 2025 18:35:49 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-43d04ea9d9aso12392935e9.3 for ; Fri, 04 Apr 2025 15:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743806144; x=1744410944; 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=3zxXxxM0ZRSeCFO7PrYLPbTvn2QmgWNDPLEa5BJ8v9o=; b=WdR/0cOd9oSWOMfxPDsgYOS0ltXDlNJjncw7AtbyjbcU4iCP6CzW/pCPBy9rSzhkaP nlvf/VgIx9eth+kPZbgZ5Lj9lEELSdPAVI8moR/Btu43KumQiic8SzZqVdR8EorlVHz/ 5bWjLCElV+/YGFFnmp8pJo1qGjpUpuuuNqjvGdzJVajWtKLxpo7wcfhXELD6fDchrqJ3 x/wgt1FQhRrxZ04AUBKJZ8glTs4kA+sgntYz+5DYoS81oZvtWG9aZswsgoku3C4V2+AH NP47ueRpkEfPBmsscaEXFS3M4aJ9e5Dv6YUbwvxejKi/DrOR32ItEjM1SN1ZxcDWV3ks B1rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743806144; x=1744410944; 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=3zxXxxM0ZRSeCFO7PrYLPbTvn2QmgWNDPLEa5BJ8v9o=; b=XdKHnUnX6QkA5hbkTTodpMCZYyTcd4R6DELHT7eFmwo/lBtcGwNUAeaReqGwPGtEmo qzFSlOBygRaTIKbYixmbk4PXzcvYcjebzksWUlZ9hDQnnfRpDd4XiP+mkO6rGf3qsUPY U0y4X6dDC3d4fRTVe7x8djziXSm81GaKHveGQfvgLhisaCeZF7f9rnYy6Z8inJnTKYd2 R0hn59oyuOxvLF+o+XajC8zpzPo8qisOlnIcH0QCefUQmUJWwRCTKhwie+agRcEhYVxm eZhobxkF+QmPjFAuPkhIlBweoCT3mhltJ6XRI20kuPkxHB1EZ8Kv5Y7e3fWjo3TrEug3 jykQ== X-Gm-Message-State: AOJu0YwPsG4VVtuhHDfNaisWuhVta/4HiKaf43hEQtGgxA3WrhliNPQu /DT2P9DDHcI/kyc8C/rTjCOA05Wpqpm1LWY6w5wldrlsCr1ZqzDFmoio0NilHFpSvyIHoTLzAtB 0 X-Gm-Gg: ASbGncv5W5IhTxilrF1R/PIBHeYUN1iwgyWe+eo7ZPS9ArP7z8kIQaC8ilFBgVKwpK1 t1QOaOTRNLreHpSKWIprijZ9ELi+QJ3ujeAGIVft5hMVBOTO5++bgJbY6PaSst9Y9bzWSKz9uPq PmJSycQ1er8w76JSd2t5zIVZVBsiIZUNWFXvbVsTPZJXmYXeTGv6F+9Lhf9EXG5CRW0xF98y3Q6 Gp2WNYwPScTyZt9NSTiSKEZlT+66mSUzbWLM+sOXlljVdCVyNFF4pBclEM3IE6GmNrH+pFVdjm9 FwO3nruLZGgsigZAY9QPIuI8a6pEugLSeGWdjYazh8iE3oka3tCPKeeTYGK88u6jJJ/5uBotobq r1EcH03pWyX6qBUP4q7EMJZoo X-Received: by 2002:a05:600c:510d:b0:43d:2230:303b with SMTP id 5b1f17b1804b1-43ecf9c3e5emr36195755e9.20.1743806144161; Fri, 04 Apr 2025 15:35:44 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39c301a7045sm5443114f8f.39.2025.04.04.15.35.43 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 04 Apr 2025 15:35:43 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Gustavo Romero , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-10.1 4/9] target/arm/mte: Include missing headers for GETPC() Date: Sat, 5 Apr 2025 00:35:16 +0200 Message-ID: <20250404223521.38781-5-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250404223521.38781-1-philmd@linaro.org> References: <20250404223521.38781-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.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 Some headers are indirectly pulled in. Make their inclusion explicit, otherwise next commit triggers: target/arm/tcg/mte_helper.c:188:26: error: call to undeclared function 'GETPC' [-Wimplicit-function-declaration] 188 | do_stg(env, ptr, xt, GETPC(), store_tag1); | ^ Signed-off-by: Philippe Mathieu-Daudé --- target/arm/tcg/mte_helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/arm/tcg/mte_helper.c b/target/arm/tcg/mte_helper.c index 7dc5fb776b3..9dcdc1d91c1 100644 --- a/target/arm/tcg/mte_helper.c +++ b/target/arm/tcg/mte_helper.c @@ -22,7 +22,7 @@ #include "cpu.h" #include "internals.h" #include "exec/exec-all.h" -#include "exec/page-protection.h" +#include "exec/target_page.h" #ifdef CONFIG_USER_ONLY #include "user/cpu_loop.h" #include "user/page-protection.h" @@ -33,6 +33,7 @@ #include "exec/helper-proto.h" #include "exec/tlb-flags.h" #include "accel/tcg/cpu-ops.h" +#include "accel/tcg/getpc.h" #include "qapi/error.h" #include "qemu/guest-random.h" #include "mte_helper.h"