From: Philippe Mathieu-Daudé Date: Wed, 30 Nov 2022 13:56:41 +0000 (+0100) Subject: hw: Reduce "qemu/accel.h" inclusion X-Git-Tag: v8.0.0-rc0~102^2~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc6ff741123216550997b12cdd991beeed47bd0d;p=thirdparty%2Fqemu.git hw: Reduce "qemu/accel.h" inclusion Move "qemu/accel.h" include from the heavily included "hw/boards.h" to hw/core/machine.c, the single file using the AccelState definition. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Fabiano Rosas Message-Id: <20221130135641.85328-3-philmd@linaro.org> Signed-off-by: Paolo Bonzini --- diff --git a/hw/core/machine.c b/hw/core/machine.c index f589b929095..616f3a207c4 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -12,6 +12,7 @@ #include "qemu/osdep.h" #include "qemu/option.h" +#include "qemu/accel.h" #include "qapi/qmp/qerror.h" #include "sysemu/replay.h" #include "qemu/units.h" diff --git a/include/hw/boards.h b/include/hw/boards.h index d18d6d00733..8e1a590997c 100644 --- a/include/hw/boards.h +++ b/include/hw/boards.h @@ -6,7 +6,6 @@ #include "exec/memory.h" #include "sysemu/hostmem.h" #include "sysemu/blockdev.h" -#include "qemu/accel.h" #include "qapi/qapi-types-machine.h" #include "qemu/module.h" #include "qom/object.h"