From patchwork Thu Apr 24 09:46:49 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: 883942 Delivered-To: patch@linaro.org Received: by 2002:a5d:474d:0:b0:38f:210b:807b with SMTP id o13csp3341998wrs; Thu, 24 Apr 2025 02:49:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXoKKbrNKDghX1bZtbCNB41z3KhQe4kg30FL+NmFeZP4qgewfhmloJmUPbFtvUFXZRb5ZljDw==@linaro.org X-Google-Smtp-Source: AGHT+IFXuUN2h7K92StppdeObIZ3+T9z4diet/4iy0Hp8DKS3ad26KbtoNTD4oo4f8N0/06fUqxn X-Received: by 2002:a05:622a:245:b0:47a:e6d1:411d with SMTP id d75a77b69052e-47eb43ab3b6mr28154571cf.40.1745488161957; Thu, 24 Apr 2025 02:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1745488161; cv=none; d=google.com; s=arc-20240605; b=VFXQ2nwhIN2jNV0NCqYZy2VeShVHkQtHFAMS80eZ/QAa5HHNdbcRAIOQAWAPq5s7W1 AZiZkLb/O+IyBwtn8gC1CcsbkB8f8EhD40FEZDfT7KEbpeanDSQ4FKN9EAxSeIaFilON DK15GmUMmLM+8GA4VfVpDnblskLGQDoeE6cJetW7hssjQ0YEB4C3vkxem65+cDvNnvpS LV3/7XbNA9uIpogGfQZ/tkTUlXUlsdGRrWQ8zS+hdvwBGdKsXxugr20gE1a9P/OHsVhK BNXV6PDOHYUCLKvijkwgcKOYSwE0136oNYyXQuWOPSrI3H7/6vc80EJv6glJjonvhkZ/ gnZw== 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=FlhuEFGU9Yqfmcq0obyYoUcjG/F2c98mBOFnS8by1sw=; fh=OfreXVzz+9AWc5zm3wgpgY6oO4v5p5SO53/S12OWUWc=; b=cVTp0H3kjrbeAGtJ6JwCUnLwCyeB8/EETA7ZKN9uGvQtMliNxPmruRN1JnqM+FfZ/F J1Yv/o7aRRtk7uer/QWqhZchlwTyXBmsaKtfmSNnzSnD8szqVqMuHvrPOq9AluDgLAnc MAi0mYyObZrq99xmzVCU3m1ZMJXkuYKOMz+F6vy1EyTU+UdflckPfdcPO+geJn1ZNYA5 7doBlCBcZqTOOO4CvmvZmgCPxrLfBDh9Yr4gekcjaTWUjzxt71esdP6qguA5SlIgtWS8 +iOFspRFM0X9eDhjHhtub7yLSWCAzEKf5+cX3jQBICyVwr7Icsb/hl3V/OANc/yVpOtT lCzQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ruYTKxkw; 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-47ea1f96cb7si13623041cf.408.2025.04.24.02.49.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Apr 2025 02:49:21 -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=ruYTKxkw; 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 1u7tBI-00085p-0o; Thu, 24 Apr 2025 05:47:44 -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 1u7tBF-00084S-9s for qemu-devel@nongnu.org; Thu, 24 Apr 2025 05:47:41 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u7tBD-0002b3-FG for qemu-devel@nongnu.org; Thu, 24 Apr 2025 05:47:40 -0400 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-39ee5ac4321so869328f8f.1 for ; Thu, 24 Apr 2025 02:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1745488057; x=1746092857; 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=FlhuEFGU9Yqfmcq0obyYoUcjG/F2c98mBOFnS8by1sw=; b=ruYTKxkwv6Dpf1z7qxS4LEZXRZ7Woo/X8nAt0ucDEZe4u46YqIqwI7WmM5pccilzfk lxSnpX/Z8WKJKcG/PXpC45W3HDTePOwNAgbRx5zP6Nm5eXfscPslU1tvAnxuB2mF97pH +65bsaDXZrdl+iAYLf+BqE4xQEn1AqtyHU58M2a7ZoYE7OZgGkck6294I2Yve8RsLLZI OW5VV1R+yB0y3DKyjKpgW1QufxLHwKRDZGMqbOGi2DSvX5gv/bKNy61fXDx/G+dmXIWd U3mQ71MlojeYtSeNsN60JjDiiCMwmQg8pQbdkN0B7ccGNc0ljKozg9E1roL/T/A7IseP XcVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745488057; x=1746092857; 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=FlhuEFGU9Yqfmcq0obyYoUcjG/F2c98mBOFnS8by1sw=; b=Ggt7ANolAt5MHl7b69U6DF8KmgiyCC1e9//Lzyat/Q3iq86RIH0LX/OClqBqpbl8sv gWuG/kkautyez9B1gcDvKSe6/qBwVtu6Z85vhN3uR2bD5ufjAMkVVSUFalxHnMuSczn/ 6hQIzA6P8V7RCywiCURnkBg/tIJMhkNbpAxhR2A+wwFsmiQTE+OFQVNrnnllKhX2m1b0 vna/h8ZTJoYly9x9XIzHz1wDUMX31HEC/f+LA7ubzJ4PfntxkpMfaFf7eHsE+w/47WqM 8nKwTo1HfxB5Y3RRtCIfZxJ+u6cOXeY2g7MY516r2M1FbRB3+pV2qWb0plBfwQGXR47c QT6w== X-Gm-Message-State: AOJu0YzpFI8AxWWyqL6017M0sifvP2bX1RYlWZjt+D/BmCzKqXn3qL6I D0T3ambU5/RcvCFC41TRfcHYZM9Rs6QDd7bng3/kZwOVKZoFG2dAZXw7m6jvYKrAjwcPX9TQTs5 Y X-Gm-Gg: ASbGncvhsaNzg9FKdtAk/AuAnkBk7sCr0cxBjlbdULPdbLvCo3gFAqNOEyJV6C9xN3o Crd9FFQCPEw2kLguBok8qUHL4SE66+4kj2D8eARXbq1FZxXutI3CUjG5yWMb8fxbdbHlTCzBxba d8VzdBICAatDw8K9NNhm3e0piFbVpzU7zpTHozzDvoV4AHwEJaULs/3TJsZAd04UNCGFnNNWd2Z k/9cInVP5qByZ5cpd7A/kpa3J6Mc5xE9tGMrltD5rus1k2UY8scD4qHmh2lgfYBG4/H67uETGZs CRPV1mbr1MmuGRBCGx6FgZyhcSW8KXEWmKj6/HxqtC/bKvAyshYxURIG7d9EzOrAY0KGsaDzOQO pd7ELgSB7c1GvOXlIk8CxFP6xD5cmgoY= X-Received: by 2002:a5d:6daf:0:b0:39c:1efb:ee8a with SMTP id ffacd0b85a97d-3a06cfa3477mr1649055f8f.38.1745488057602; Thu, 24 Apr 2025 02:47:37 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4409d2a2fa5sm13668615e9.9.2025.04.24.02.47.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 24 Apr 2025 02:47:37 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Richard Henderson Cc: Pierrick Bouvier , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 09/13] accel/tcg: Include 'accel/tcg/getpc.h' in 'exec/helper-proto' Date: Thu, 24 Apr 2025 11:46:49 +0200 Message-ID: <20250424094653.35932-10-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250424094653.35932-1-philmd@linaro.org> References: <20250424094653.35932-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=philmd@linaro.org; helo=mail-wr1-x42b.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 Most files including "exec/helper-proto.h" call GETPC(). Include it there (in the common part) instead of the unspecific "exec/exec-all.h" header. Signed-off-by: Philippe Mathieu-Daudé --- include/exec/exec-all.h | 1 - include/exec/helper-proto-common.h | 2 ++ accel/tcg/translate-all.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 4c5ad98c6a9..816274bf905 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -26,7 +26,6 @@ #include "exec/vaddr.h" #if defined(CONFIG_TCG) -#include "accel/tcg/getpc.h" /** * probe_access: diff --git a/include/exec/helper-proto-common.h b/include/exec/helper-proto-common.h index 16782ef46c8..76e6c25becb 100644 --- a/include/exec/helper-proto-common.h +++ b/include/exec/helper-proto-common.h @@ -13,4 +13,6 @@ #include "exec/helper-proto.h.inc" #undef HELPER_H +#include "accel/tcg/getpc.h" + #endif /* HELPER_PROTO_COMMON_H */ diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index 38819a507b2..0408e2522a8 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate-all.c @@ -61,6 +61,7 @@ #include "system/tcg.h" #include "qapi/error.h" #include "accel/tcg/cpu-ops.h" +#include "accel/tcg/getpc.h" #include "tb-jmp-cache.h" #include "tb-hash.h" #include "tb-context.h"