Don't include sysemu/tcg.h if it is not necessary

This header only defines the tcg_allowed variable and the tcg_enabled()
function - which are not required in many files that include this
header. Drop the #include statement there.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20220315144107.1012530-1-thuth@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Thomas Huth 2022-03-15 15:41:07 +01:00 committed by Richard Henderson
parent 2d20a57453
commit 55d71e0b78
9 changed files with 0 additions and 9 deletions

View File

@ -4,7 +4,6 @@
#include "qapi/qapi-commands-machine.h" #include "qapi/qapi-commands-machine.h"
#include "exec/exec-all.h" #include "exec/exec-all.h"
#include "monitor/monitor.h" #include "monitor/monitor.h"
#include "sysemu/tcg.h"
static void hmp_tcg_register(void) static void hmp_tcg_register(void)
{ {

View File

@ -24,7 +24,6 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "sysemu/tcg.h"
#include "sysemu/replay.h" #include "sysemu/replay.h"
#include "sysemu/cpu-timers.h" #include "sysemu/cpu-timers.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"

View File

@ -27,7 +27,6 @@
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/units.h" #include "qemu/units.h"
#include "qemu/accel.h" #include "qemu/accel.h"
#include "sysemu/tcg.h"
#include "qemu-version.h" #include "qemu-version.h"
#include <machine/trap.h> #include <machine/trap.h>

View File

@ -26,7 +26,6 @@
#include "migration/blocker.h" #include "migration/blocker.h"
#include "migration/qemu-file-types.h" #include "migration/qemu-file-types.h"
#include "sysemu/dma.h" #include "sysemu/dma.h"
#include "sysemu/tcg.h"
#include "trace.h" #include "trace.h"
/* enabled until disconnected backend stabilizes */ /* enabled until disconnected backend stabilizes */

View File

@ -21,7 +21,6 @@
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/units.h" #include "qemu/units.h"
#include "qemu/accel.h" #include "qemu/accel.h"
#include "sysemu/tcg.h"
#include "qemu-version.h" #include "qemu-version.h"
#include <sys/syscall.h> #include <sys/syscall.h>
#include <sys/resource.h> #include <sys/resource.h>

View File

@ -48,7 +48,6 @@
#include "qapi/util.h" #include "qapi/util.h"
#include "sysemu/blockdev.h" #include "sysemu/blockdev.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "sysemu/tcg.h"
#include "sysemu/tpm.h" #include "sysemu/tpm.h"
#include "qapi/qmp/qdict.h" #include "qapi/qmp/qdict.h"
#include "qapi/qmp/qerror.h" #include "qapi/qmp/qerror.h"

View File

@ -27,7 +27,6 @@
#include "sysemu/cpus.h" #include "sysemu/cpus.h"
#include "sysemu/cpu-timers.h" #include "sysemu/cpu-timers.h"
#include "sysemu/kvm.h" #include "sysemu/kvm.h"
#include "sysemu/tcg.h"
#include "qemu/range.h" #include "qemu/range.h"
#include "qapi/qapi-commands-machine-target.h" #include "qapi/qapi-commands-machine-target.h"
#include "qapi/error.h" #include "qapi/error.h"

View File

@ -15,7 +15,6 @@
#include "s390x-internal.h" #include "s390x-internal.h"
#include "kvm/kvm_s390x.h" #include "kvm/kvm_s390x.h"
#include "sysemu/kvm.h" #include "sysemu/kvm.h"
#include "sysemu/tcg.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "qapi/visitor.h" #include "qapi/visitor.h"
#include "qapi/qmp/qerror.h" #include "qapi/qmp/qerror.h"

View File

@ -27,7 +27,6 @@
#include "hw/s390x/pv.h" #include "hw/s390x/pv.h"
#include "sysemu/hw_accel.h" #include "sysemu/hw_accel.h"
#include "sysemu/runstate.h" #include "sysemu/runstate.h"
#include "sysemu/tcg.h"
void s390x_tod_timer(void *opaque) void s390x_tod_timer(void *opaque)
{ {