From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 56679C4332F for ; Mon, 11 Dec 2023 21:29:42 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCnk7-0005LL-Bz; Mon, 11 Dec 2023 16:23:11 -0500 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 1rCnk3-0005Ep-J8 for qemu-devel@nongnu.org; Mon, 11 Dec 2023 16:23:07 -0500 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rCnjx-0005pv-MA for qemu-devel@nongnu.org; Mon, 11 Dec 2023 16:23:07 -0500 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-50d176eb382so4344983e87.2 for ; Mon, 11 Dec 2023 13:23:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702329780; x=1702934580; 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=6IVD0fP181N6yKPURwFJTLnTnzSvk7D9idiGLSO6/Cw=; b=j2dxbNdV6HhJOO/qnq5xW1LOo6MzI1uHNTaURVb7sOkMF/zhyaoqvzfOXw4LbZTHwF lipBpHTtTzmvcIlcesyEDh+6s9m1I8GdAjXvlNgoyhFq5ZE9MBw0/KSaamtKzJ24tEWM iMPX1QUntrll0LtwiPuIOBa1OrIH+Ze/QWS8tHBaOQMSp8nKd5/CN0mkjaHzo2DtoQgj zbK1ethi7tHQLgvXIgtYK/7k6i94yeGJvd9P1CIIPUTdPZMotk+mpFEqElUsAJl0hcok ZpLzB2E/seuHDmCc3ZdAzwUNAeGMp5NUSZmyNSe/uqzg2GFObsZufqruvUArRCN9XDvK AQgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702329780; x=1702934580; 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=6IVD0fP181N6yKPURwFJTLnTnzSvk7D9idiGLSO6/Cw=; b=NbN4voTAch0Mae3YGguF6/KjPGKCAYTF63k4vacLnxnzwhhvsObAZN8tCIzNO6EN5F Ndwx/3HTjSJdqXX+Rj6s5AoxdSqjMN2pTe9URL2jSPBV8Ox/tvvTtmgu9FIZgyGA2HAY R4a0Bju2Zl+n/SXYup+nmKr7Mu2N6uEJzkDkW65tCRl93LScHoG0znUNtMAK7C28gw1I MzB1XJ/FKeoWkE0sPc1t1FvgZLOLVDgQ3r29wAVNSnYsRKsQsM1LPDrS52wIGCTWI+9/ Eg0pQQkEYHJ5Z0JjSUwTOFUi8uLfGkJii16lJJivLNyulKLvLue/VaR11dQu2IFTKy7L OKZw== X-Gm-Message-State: AOJu0YypuD4TK0xE35X3uQIRA4xNf+Dphn3v/xWCSsxl4PFnoBERgh8w 97LYTHsfpRDJhKZvCEqh1RksK5I4uGlNA3N5yDyE4g== X-Google-Smtp-Source: AGHT+IGImOxVOWgtEtRNbTpMP3VyoEVtcVk7T/kTyJSDnJhEjGlDz85TYtGNSnv9pwyCRPaMJL33wQ== X-Received: by 2002:a05:6512:610:b0:50b:fbbb:2035 with SMTP id b16-20020a056512061000b0050bfbbb2035mr2542678lfe.97.1702329779237; Mon, 11 Dec 2023 13:22:59 -0800 (PST) Received: from m1x-phil.lan ([176.176.175.193]) by smtp.gmail.com with ESMTPSA id vb5-20020a170907d04500b00a1d885359d6sm5283778ejc.46.2023.12.11.13.22.56 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 11 Dec 2023 13:22:58 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Ilya Leoshkevich , Peter Xu , Liu Zhiwei , Peter Maydell , Mark Cave-Ayland , Eduardo Habkost , qemu-arm@nongnu.org, Paolo Bonzini , qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , qemu-riscv@nongnu.org, David Hildenbrand , Warner Losh , Claudio Fontana , Brian Cain , Daniel Henrique Barboza , Richard Henderson , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 21/24] exec/cpu_ldst: Avoid including 'cpu.h' Date: Mon, 11 Dec 2023 22:19:58 +0100 Message-ID: <20231211212003.21686-22-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231211212003.21686-1-philmd@linaro.org> References: <20231211212003.21686-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=philmd@linaro.org; helo=mail-lf1-x135.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, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=0.01 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org "exec/cpu_ldst.h" doesn't need to huge "cpu.h" header, but simply: - exec/cpu-defs.h - exec/tlb-common.h - exec/user/abitypes.h - exec/user/guest-base.h Signed-off-by: Philippe Mathieu-Daudé --- include/exec/cpu_ldst.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/exec/cpu_ldst.h b/include/exec/cpu_ldst.h index c69f02b699..a115553ee8 100644 --- a/include/exec/cpu_ldst.h +++ b/include/exec/cpu_ldst.h @@ -64,11 +64,15 @@ #include "exec/memopidx.h" #include "qemu/int128.h" -#include "cpu.h" +#include "exec/cpu-defs.h" +#include "exec/tlb-common.h" #include "tcg/abi_ptr.h" #if defined(CONFIG_USER_ONLY) +#include "exec/user/abitypes.h" +#include "exec/user/guest-base.h" + #ifndef TARGET_TAGGED_ADDRESSES static inline abi_ptr cpu_untagged_addr(CPUState *cs, abi_ptr x) { -- 2.41.0