From nobody Tue Nov 18 07:42:01 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1608127400; cv=none; d=zohomail.com; s=zohoarc; b=KgS8Mrxo7zaxtf6LJGvAVqJkS976JZmKCF2A6o09IzPgYXykDWP/nkTtIbNlOwsF4Rb+E4q4SrzivvjgBlArjax7KyiO3IREbnR068EwM3xfXeYYib2sB1+OZhh41NaNnO1zLiVZnnBl4/mDBfui3cwW7q08C4ktlqDFIMnyEGk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1608127400; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=8qmwRQikb74xjNAftiZxC6fU3xdmkl7yKEzgeqPvSMw=; b=Q1wgw+tYbyGVRZvmgplDUyrtK4uqP7JJUaiuO+042ARklsRQN/r4li6x0OXKsVq71JPuZSoNYbPdhoPyzUY7JXK7o8ScJq/Wxmh9aw9bLvNMlVGjWY2Ce09bHIzdplSjd7KIZlhQji13dmE9UGTlHeeowEyC4ZqRDZmCzJSXUss= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1608127400272846.9021860302275; Wed, 16 Dec 2020 06:03:20 -0800 (PST) Received: from localhost ([::1]:47700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpXOe-0002rd-Oy for importer@patchew.org; Wed, 16 Dec 2020 09:03:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpXHF-0004xr-Ij for qemu-devel@nongnu.org; Wed, 16 Dec 2020 08:55:37 -0500 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:44984) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpXHD-0000sX-06 for qemu-devel@nongnu.org; Wed, 16 Dec 2020 08:55:37 -0500 Received: by mail-ej1-x62f.google.com with SMTP id w1so28155781ejf.11 for ; Wed, 16 Dec 2020 05:55:34 -0800 (PST) Received: from avogadro.lan ([2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e]) by smtp.gmail.com with ESMTPSA id k16sm1423216ejd.78.2020.12.16.05.55.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Dec 2020 05:55:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8qmwRQikb74xjNAftiZxC6fU3xdmkl7yKEzgeqPvSMw=; b=aaIU3yLdGAiPa5nL2yscO0wr47gzrfrrtE4sjBvsPd+li8V2BVd68uKQ1eUCB4xW8a Vj3Ab0aVoq1IMl/XnrxDooVxOYbLAwsdkVQGN1QSquadlyLX9+EEk6g94im0a2R9OhzY AWWt/FZNDe0Atkf4eQgGV0qqA9Sa0AV7TpoPcTXFXrZzzTigR75MdwZM8hog0hjUVV4T djgG7mx02MicagWbnWr78w/p3SlB4nLuYIXT4THDOKWKv85CYR2qI5qFDLix04aiZJ3l voZXEE7WrnaumgQcuunYyysdBTmpKstzh2i4tyg+UdGzQBVj0yIUQ+wUwKDsjXyvJYXF cktA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=8qmwRQikb74xjNAftiZxC6fU3xdmkl7yKEzgeqPvSMw=; b=m9LRxjtjpMEPyaDR73nA9NC/KrvLmD/rHgWp+FnTo3Zmosn+VlNiGMUrMDNJs1VswS ++zOkMPaj+5STNJ4cIrC0z6yl48UXKf1Mm80P9FnKFt66uyaHXqGeg8cLUw19Buj6gpv SsBKxKP4Ba7A9u3RwkXPeyX2SAqZ8IE/0qlhv8/EJQatxNMcsaX28KGzWNWNkapKlH2B uR/YZ36xjGbzOlnBKrJe0hhOepnAEh6HsSrLDSyrNPKJvF25vygOfa+x0QWtUDYDGePh sTvuYXnu1FeF0/Q/oO2ZPffyd2QiEHMLM45pwKy9fURoKw2iS6QFz26Qhm5DwcHm2Oob RlyQ== X-Gm-Message-State: AOAM5317e7eIlRvcFJj11dcB6A2NBXL0X7iDZ4wjTL7476lM9ZP9WjeR OGJ/rlMk3bhQ9XFr1WD/5JS1JDYpxYM= X-Google-Smtp-Source: ABdhPJz8CS7CDV2ogbrTuy68qSpfmb72mA1nvMHV8pCDGP+KzAPmsTi7BHcHW6w4WQUYR3xC/IJBFA== X-Received: by 2002:a17:906:710b:: with SMTP id x11mr32134364ejj.433.1608126933466; Wed, 16 Dec 2020 05:55:33 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 1/3] remove TCG includes from common code Date: Wed, 16 Dec 2020 14:55:27 +0100 Message-Id: <20201216135529.265165-2-pbonzini@redhat.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201216135529.265165-1-pbonzini@redhat.com> References: <20201216135529.265165-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x62f.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: philmd@redhat.com, richard.henderson@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Enable removing tcg/$tcg_arch from the include path when TCG is disabled. Move translate-all.h to include/exec, since stubs exist for the functions defined therein. Signed-off-by: Paolo Bonzini Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- accel/stubs/tcg-stub.c | 1 - accel/tcg/cputlb.c | 2 +- accel/tcg/translate-all.c | 2 +- accel/tcg/user-exec.c | 2 +- cpu.c | 2 +- hw/i386/kvmvapic.c | 1 - {accel/tcg =3D> include/exec}/translate-all.h | 0 monitor/misc.c | 1 - softmmu/physmem.c | 3 +-- 9 files changed, 5 insertions(+), 9 deletions(-) rename {accel/tcg =3D> include/exec}/translate-all.h (100%) diff --git a/accel/stubs/tcg-stub.c b/accel/stubs/tcg-stub.c index e4bbf997aa..8c18d3eabd 100644 --- a/accel/stubs/tcg-stub.c +++ b/accel/stubs/tcg-stub.c @@ -12,7 +12,6 @@ =20 #include "qemu/osdep.h" #include "cpu.h" -#include "tcg/tcg.h" #include "exec/exec-all.h" =20 void tb_flush(CPUState *cpu) diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c index 42ab79c1a5..ced3dc077e 100644 --- a/accel/tcg/cputlb.c +++ b/accel/tcg/cputlb.c @@ -33,7 +33,7 @@ #include "exec/helper-proto.h" #include "qemu/atomic.h" #include "qemu/atomic128.h" -#include "translate-all.h" +#include "exec/translate-all.h" #include "trace/trace-root.h" #include "trace/mem.h" #ifdef CONFIG_PLUGIN diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index b7d50a73d4..a1803a1026 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate-all.c @@ -49,7 +49,7 @@ =20 #include "exec/cputlb.h" #include "exec/tb-hash.h" -#include "translate-all.h" +#include "exec/translate-all.h" #include "qemu/bitmap.h" #include "qemu/error-report.h" #include "qemu/qemu-print.h" diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c index 4ebe25461a..abb9555201 100644 --- a/accel/tcg/user-exec.c +++ b/accel/tcg/user-exec.c @@ -23,7 +23,7 @@ #include "tcg/tcg.h" #include "qemu/bitops.h" #include "exec/cpu_ldst.h" -#include "translate-all.h" +#include "exec/translate-all.h" #include "exec/helper-proto.h" #include "qemu/atomic128.h" #include "trace/trace-root.h" diff --git a/cpu.c b/cpu.c index 0c485cdf2d..0b245cda2e 100644 --- a/cpu.c +++ b/cpu.c @@ -34,7 +34,7 @@ #include "sysemu/tcg.h" #include "sysemu/kvm.h" #include "sysemu/replay.h" -#include "translate-all.h" +#include "exec/translate-all.h" #include "exec/log.h" =20 uintptr_t qemu_host_page_size; diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c index 077c3f4866..2c1898032e 100644 --- a/hw/i386/kvmvapic.c +++ b/hw/i386/kvmvapic.c @@ -21,7 +21,6 @@ #include "hw/sysbus.h" #include "hw/boards.h" #include "migration/vmstate.h" -#include "tcg/tcg.h" #include "qom/object.h" =20 #define VAPIC_IO_PORT 0x7e diff --git a/accel/tcg/translate-all.h b/include/exec/translate-all.h similarity index 100% rename from accel/tcg/translate-all.h rename to include/exec/translate-all.h diff --git a/monitor/misc.c b/monitor/misc.c index fde6e36a0b..9a132f73d1 100644 --- a/monitor/misc.c +++ b/monitor/misc.c @@ -77,7 +77,6 @@ #include "qapi/qmp-event.h" #include "sysemu/cpus.h" #include "qemu/cutils.h" -#include "tcg/tcg.h" =20 #if defined(TARGET_S390X) #include "hw/s390x/storage-keys.h" diff --git a/softmmu/physmem.c b/softmmu/physmem.c index 2cd1de4a2c..67b53d39e4 100644 --- a/softmmu/physmem.c +++ b/softmmu/physmem.c @@ -25,7 +25,6 @@ #include "cpu.h" #include "exec/exec-all.h" #include "exec/target_page.h" -#include "tcg/tcg.h" #include "hw/qdev-core.h" #include "hw/qdev-properties.h" #include "hw/boards.h" @@ -53,7 +52,7 @@ =20 #include "qemu/rcu_queue.h" #include "qemu/main-loop.h" -#include "translate-all.h" +#include "exec/translate-all.h" #include "sysemu/replay.h" =20 #include "exec/memory-internal.h" --=20 2.28.0