From patchwork Thu Aug 31 12:56:20 2023 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: 718997 Delivered-To: patch@linaro.org Received: by 2002:adf:e5c2:0:b0:31d:da82:a3b4 with SMTP id a2csp462600wrn; Thu, 31 Aug 2023 06:11:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPl5jq+M1UhxH7BDar0lHVPmeVV+uJrYT11Px4P+Dx1WqK81WXUyaMdC4AW7d5YQZS3zaJ X-Received: by 2002:a0c:e441:0:b0:64a:3320:8a8d with SMTP id d1-20020a0ce441000000b0064a33208a8dmr2887071qvm.30.1693487478002; Thu, 31 Aug 2023 06:11:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693487477; cv=none; d=google.com; s=arc-20160816; b=aDMsaULPhaqYSbHFsKb5zTyRyS3Q5hwcRcdSNMlIbhEzE5L8MeImqlqlDYbzyOXCJu XpS4q6PDG0ENEw+mlmA5GkNtVeiqIaenbLeeg3aUpUn6fYxXr1TuJXIHEbXwWCdl7+QX nQ49hEpS7o0El7MnEAVlFw6FYM8DfC8HCYjKCJH2CuJM58BUiS9Nm9Me1eA4qXrA1hZg wYp917NoZ6kAQ/Mebxn0C153uCxmr2Y1IvxA/zxRlebCK1FgmIM/n2+TPdXF72VYJb2P hBNidOxbYqWaRfsmmM/UlR09Ht1lI3reV33HRI9MdaL+L/PvVGplBMeAQdKJz5YNWIRH tuNA== 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=1e6wfOUuMKCjdsL213yjWvY/4BGAvkNLIa8eLz9Omvk=; fh=ehJgi6qtc5GgGFSi7kUe5Uk36tkdtVlia04EiCfbU/Y=; b=CWU94K5IRiROdudBjHfIzSI41YPTHs10I43PTR761WARAqiIrXxN7F3LP73kRYqoOO Pj/wv7OKI00fHD4i2r/mQS/qKAFDsBasT4T3ub4MgWciokzy+4QSFbI7+OIFh2vYsFOu l2UL0RrRKhTCnQopsy0TLXpsoIiVp+GmXSIS4cJvlHzROcLPLFmzVu7UljphUHiioXKa BsZkdoPpDAugayzEV5AKbiRd1xlEZ/24fzO83ojk1RQDH5wSymzd/x2pweWbrMzihRjv INDOuMXZ2C7Eh2MK6BCaaRKGyjvS+oWp4q+pfnSDEOEWbgEwi30HuociCILr/OhS3j8H Cf7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GqF3GdQV; 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 m4-20020a0cf184000000b0064b3487ffd0si844255qvl.135.2023.08.31.06.11.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Aug 2023 06:11:17 -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=GqF3GdQV; 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 1qbhKN-0006eG-4D; Thu, 31 Aug 2023 09:03:15 -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 1qbhFu-0003cE-Li for qemu-devel@nongnu.org; Thu, 31 Aug 2023 08:58:40 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qbhFr-0005eA-PI for qemu-devel@nongnu.org; Thu, 31 Aug 2023 08:58:38 -0400 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-31c5c06e8bbso635371f8f.1 for ; Thu, 31 Aug 2023 05:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693486713; x=1694091513; 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=1e6wfOUuMKCjdsL213yjWvY/4BGAvkNLIa8eLz9Omvk=; b=GqF3GdQVzYimY9Po0NsGNUukTmmDDvsPWS/nUcIXw+JBi/N+/oL9qpzAzNN2aiDHkI 9ofSg81Gi/P4Z+/TGoTmVsUh76Hchj044h2eyZe4QS1+QDWZmdL4G02Ndzui2eEywxhc ZXbiOVuGj1cd0cyqO9QguLxF2Stp7uOt7TLJ0dMcuod+1JF7jNcM6qZelmyezgsbvFw4 Cb2wJJs5qaBf5I8gcxEgZcpCt2uk9mwmMMwc7AXLiTIBIOZ4ORbQ9XgTyn0mOscYg5nd T6woG8kSpF0hsabxvgV9addb3+NTftYVbZxCnpsplbGvg7rqm1lkYj2sRokO97aMuyio sIRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693486713; x=1694091513; 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=1e6wfOUuMKCjdsL213yjWvY/4BGAvkNLIa8eLz9Omvk=; b=HD1mJN0J8ygjSKb+737ElMrlUO0C3M52uHZgrpcv7xo4icJKSijNlrB15R7E9kbz76 YtVQEj8gAhh+eMuVUysrlu6qVwQJesJhtAVsRXHwXkoVee8qk7o94ujmuMLdFRbUwrtF FCnxEbTysQGu7RRCJOcUUf9iMD0dC8ORKy/DyjbQwT4sI2+S3H1BiMYk84X1T+FS17sZ G92jiCnMHVECP7vezBRfN218XQR4muYEb5H59+gZS4+QQI+WimnsCc67fLfdvwMB55YS gbomJhAql7GXJBSmX+4H2YeSfp3YSfz+3uTWaSVQhwW8Xqf+PUBq4FVQKWe7chp4QdXi RSkw== X-Gm-Message-State: AOJu0Yzn48r7pv6b7b6MUFninygCaiQcNGfvIqrNW2UE5VlwNdwdFmQL XfpBe9x4Cgs3LMQpSgEGQfsk+IRWVycSiRDMZNw= X-Received: by 2002:a05:6000:11c6:b0:317:5b76:826 with SMTP id i6-20020a05600011c600b003175b760826mr3994669wrx.0.1693486713368; Thu, 31 Aug 2023 05:58:33 -0700 (PDT) Received: from m1x-phil.lan ([176.187.199.245]) by smtp.gmail.com with ESMTPSA id e2-20020a05600c218200b003fef5402d2dsm5122621wme.8.2023.08.31.05.58.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 31 Aug 2023 05:58:32 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-block@nongnu.org, =?utf-8?q?Philippe_Mathieu-Da?= =?utf-8?q?ud=C3=A9?= , Richard Henderson Subject: [PULL 18/41] exec/translation-block: Clean up includes Date: Thu, 31 Aug 2023 14:56:20 +0200 Message-ID: <20230831125646.67855-19-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230831125646.67855-1-philmd@linaro.org> References: <20230831125646.67855-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=philmd@linaro.org; helo=mail-wr1-x42a.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=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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 'qemu/atomic.h' and 'exec/target_page.h' are not used. 'qemu/interval-tree.h' is only required for user emulation. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20230828221314.18435-12-philmd@linaro.org> --- include/exec/translation-block.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/exec/translation-block.h b/include/exec/translation-block.h index 5119924927..b785751774 100644 --- a/include/exec/translation-block.h +++ b/include/exec/translation-block.h @@ -7,11 +7,11 @@ #ifndef EXEC_TRANSLATION_BLOCK_H #define EXEC_TRANSLATION_BLOCK_H -#include "qemu/atomic.h" #include "qemu/thread.h" -#include "qemu/interval-tree.h" #include "exec/cpu-common.h" -#include "exec/target_page.h" +#ifdef CONFIG_USER_ONLY +#include "qemu/interval-tree.h" +#endif /* * Page tracking code uses ram addresses in system mode, and virtual