From patchwork Fri Apr 26 19:41:57 2024 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: 792380 Delivered-To: patch@linaro.org Received: by 2002:adf:cc13:0:b0:346:15ad:a2a with SMTP id x19csp627385wrh; Fri, 26 Apr 2024 12:51:00 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXXGbP1Gq70uAITbCuriaHfgUE4qiEFuh0S0FUu26oidSvy71mrO0DBf0MYA5GjdKg8U1sT8PUTmZrIE+zhukMw X-Google-Smtp-Source: AGHT+IHEueqNTQH3E5Yz3nPbHbF4SHmDlBC+AlW7dQu13HqtxRI5BAjqtP7bAiR1P0Uez2jph+2R X-Received: by 2002:a05:620a:1a23:b0:790:adca:156b with SMTP id bk35-20020a05620a1a2300b00790adca156bmr2971656qkb.29.1714161059698; Fri, 26 Apr 2024 12:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714161059; cv=none; d=google.com; s=arc-20160816; b=NDlGfNAi6H3R9pyybCQlNiLwX1QJUoCRXL1K3La5s3hyE9zTqXaxByKt9AcUoai/sr J1FyQgrytrgPcE2XZOy+qgTg6txhvX4n+8I1A3QFxgUYOECKoNM/YHeaJ6QAw+pSNzOR hgI4zlMhLMt87P2dP5yEqs6/pobOzQ+DArEC0cygBORcx4tViwU/Sz2aVu2LbAm4wPOi i3B/9cUKAQtaPoNra6HcADY5zaAJ54M18azpnpEoT09ESseoKIBiCj9QZE0kl1+frlKP yX1YfjZEkGsw0CH63QZovOuIfgDo+XKL/DkKE9D0MP9AjU7ezRRajuRTIJHfcLE2Brtb YKwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=rBREpUZQ0r3GUKko+t9VMOEs4AUMGwGQ0XgatsXxsV4=; fh=gUEsd95llBLtqUKhUnPIoHQ/SNwiv/bmtZ7rMzFWY9Q=; b=hTcUhyqI8oxNQKJUQFbWz4P7iT/0st6CDW0YpKchTnQvPY+qqsCbhB3RgdZFmeALR6 pAbkPXBksSnM1shQQFI5aWmNg3WvmTMeCbAJ8yZz7tRcxMeaBToxHD1BPrphsxwT51+P 8usTusoWc++FfooxfrT7drvwUscfdFLeZ3L0Oqk8QdReoXkCk5bdtBWoM/sBUEXe2D6T MR3jFpRuiXLX9iMRK3LIjB8resxJ4WaZrmmoB2anxej9k0mfellBcxFAIMce2aXvx2Yb vqB83hACFsIHZ1a7kdGDCzbcZA+dwJS7c+8O/YQ3FmI7R++zBv0XzxL0p07XP8zisVc2 U9pQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XcmflDGO; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o22-20020a05620a0d5600b0078d68a8cd4csi20493608qkl.18.2024.04.26.12.50.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Apr 2024 12:50:59 -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=XcmflDGO; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s0RVy-00031v-BE; Fri, 26 Apr 2024 15:45:46 -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 1s0RVw-0002p0-8S for qemu-devel@nongnu.org; Fri, 26 Apr 2024 15:45:44 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s0RVu-0004q1-Ef for qemu-devel@nongnu.org; Fri, 26 Apr 2024 15:45:43 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a55911bff66so327645166b.0 for ; Fri, 26 Apr 2024 12:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714160740; x=1714765540; 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=rBREpUZQ0r3GUKko+t9VMOEs4AUMGwGQ0XgatsXxsV4=; b=XcmflDGOl8Qt98eajrPFbuXni1rhiWTTaGibRfYCpKbjL+q8DCDvVxKSIDweDvY6gv NTxVdZIMS+WhDt/YGkD5fgLSBjWPO3fnez78At/yFk0vP092Tqr5xon8BgJxu7iWqpBB PDMzn+TOSh3Agl5XuPsc1KgqOHCqOjF9bflWYi9zhHHEJW+o7B2GXpv2V3H6W7qVZ8Fa 7JhQxMsyvPtMGbZRsYRuEDDklsaWbw+ZgQioxQKay1F+FxU17kNd7AvcwogxnsCJf3Q6 9cq+6oVFRTK/b2K2WobBOjhaeqeSYU2JWpPnVhhCzhrqkPfsnL66gubkNAAHdeTh7e6v rhgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714160740; x=1714765540; 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=rBREpUZQ0r3GUKko+t9VMOEs4AUMGwGQ0XgatsXxsV4=; b=uD30Pw4yX/qd2/878FD95UZSzG33ZpUIDfpGBJeDSQV7m2iSf0TG2BRjKsnDKikWkY zOKSr4pUxCUKKLceuCHu6pY1DwojxBio9MW/2OzJtwGSiCQLlkQtr6/+ingwnIatQcXd VsJs/FpVtY4yfXVXdGckSxjBYPO7rXmuXdnEcofFXokCXQsBk3IRN/QiWS0KHz78NIGw ZLSZYi1r61XsaWtFzCEaVLkhfAFV0F6mK8EtEuhgIX/k01EfxvN+lOoTbFLlAxsPRFX/ efURXnm2hKvdmxn/KQo9VdaUJS8BB5f1/P28x9K6Vg36VodRQwmnlotrhBhgUk2s6AI6 6ipw== X-Gm-Message-State: AOJu0YyJsM4FB5vnX9Iwvt/i15UmpuZtM+H4rK0nc2bqRszQN7diJpZR CEIIjEAboVMhh+0g+cUXWSBCKc5gj4zkTW4KEfbKGYx9n0ZdjztMg9rkLw9yKTWR69oRYo5R7pf LZls= X-Received: by 2002:a17:906:2854:b0:a58:9a74:5e6d with SMTP id s20-20020a170906285400b00a589a745e6dmr335495ejc.11.1714160740621; Fri, 26 Apr 2024 12:45:40 -0700 (PDT) Received: from m1x-phil.lan (aul93-h02-176-184-11-147.dsl.sta.abo.bbox.fr. [176.184.11.147]) by smtp.gmail.com with ESMTPSA id se12-20020a170906ce4c00b00a587271f77dsm5326419ejb.176.2024.04.26.12.45.39 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 26 Apr 2024 12:45:40 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , Paolo Bonzini Subject: [PULL 37/38] hw/core: Avoid including the full 'hw/core/cpu.h' in 'tcg-cpu-ops.h' Date: Fri, 26 Apr 2024 21:41:57 +0200 Message-ID: <20240426194200.43723-38-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240426194200.43723-1-philmd@linaro.org> References: <20240426194200.43723-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=philmd@linaro.org; helo=mail-ej1-x62b.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 Only include what is required, avoiding the full CPUState API from the huge "hw/core/cpu.h" header. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20240418192525.97451-4-philmd@linaro.org> --- include/hw/core/tcg-cpu-ops.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/hw/core/tcg-cpu-ops.h b/include/hw/core/tcg-cpu-ops.h index dc1f16a977..9387d38748 100644 --- a/include/hw/core/tcg-cpu-ops.h +++ b/include/hw/core/tcg-cpu-ops.h @@ -10,7 +10,11 @@ #ifndef TCG_CPU_OPS_H #define TCG_CPU_OPS_H -#include "hw/core/cpu.h" +#include "exec/breakpoint.h" +#include "exec/hwaddr.h" +#include "exec/memattrs.h" +#include "exec/mmu-access-type.h" +#include "exec/vaddr.h" struct TCGCPUOps { /**