Skip to content

Commit

Permalink
Do not include cpu.h if it's not really necessary
Browse files Browse the repository at this point in the history
Stop including cpu.h in files that don't need it.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210416171314.2074665-4-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
huth authored and vivier committed May 2, 2021
1 parent ead62c7 commit 2068cab
Showing 120 changed files with 0 additions and 120 deletions.
1 change: 0 additions & 1 deletion accel/stubs/kvm-stub.c
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@
*/

#include "qemu/osdep.h"
#include "cpu.h"
#include "sysemu/kvm.h"

#ifndef CONFIG_USER_ONLY
1 change: 0 additions & 1 deletion accel/stubs/tcg-stub.c
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@
*/

#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/exec-all.h"

void tb_flush(CPUState *cpu)
1 change: 0 additions & 1 deletion accel/tcg/cpu-exec-common.c
Original file line number Diff line number Diff line change
@@ -18,7 +18,6 @@
*/

#include "qemu/osdep.h"
#include "cpu.h"
#include "sysemu/cpus.h"
#include "sysemu/tcg.h"
#include "exec/exec-all.h"
1 change: 0 additions & 1 deletion accel/tcg/cpu-exec.c
Original file line number Diff line number Diff line change
@@ -20,7 +20,6 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/qemu-print.h"
#include "cpu.h"
#include "hw/core/tcg-cpu-ops.h"
#include "trace.h"
#include "disas/disas.h"
1 change: 0 additions & 1 deletion accel/tcg/cputlb.c
Original file line number Diff line number Diff line change
@@ -19,7 +19,6 @@

#include "qemu/osdep.h"
#include "qemu/main-loop.h"
#include "cpu.h"
#include "hw/core/tcg-cpu-ops.h"
#include "exec/exec-all.h"
#include "exec/memory.h"
1 change: 0 additions & 1 deletion accel/tcg/plugin-gen.c
Original file line number Diff line number Diff line change
@@ -43,7 +43,6 @@
* CPU's index into a TCG temp, since the first callback did it already.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "tcg/tcg.h"
#include "tcg/tcg-op.h"
#include "trace/mem.h"
1 change: 0 additions & 1 deletion accel/tcg/translate-all.c
Original file line number Diff line number Diff line change
@@ -22,7 +22,6 @@
#include "qemu-common.h"

#define NO_CPU_IO_DEFS
#include "cpu.h"
#include "trace.h"
#include "disas/disas.h"
#include "exec/exec-all.h"
1 change: 0 additions & 1 deletion accel/tcg/translator.c
Original file line number Diff line number Diff line change
@@ -9,7 +9,6 @@

#include "qemu/osdep.h"
#include "qemu/error-report.h"
#include "cpu.h"
#include "tcg/tcg.h"
#include "tcg/tcg-op.h"
#include "exec/exec-all.h"
1 change: 0 additions & 1 deletion accel/tcg/user-exec.c
Original file line number Diff line number Diff line change
@@ -17,7 +17,6 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "hw/core/tcg-cpu-ops.h"
#include "disas/disas.h"
#include "exec/exec-all.h"
1 change: 0 additions & 1 deletion bsd-user/main.c
Original file line number Diff line number Diff line change
@@ -32,7 +32,6 @@
#include "qemu/path.h"
#include "qemu/help_option.h"
#include "qemu/module.h"
#include "cpu.h"
#include "exec/exec-all.h"
#include "tcg/tcg.h"
#include "qemu/timer.h"
1 change: 0 additions & 1 deletion disas.c
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@
#include "elf.h"
#include "qemu/qemu-print.h"

#include "cpu.h"
#include "disas/disas.h"
#include "disas/capstone.h"

1 change: 0 additions & 1 deletion dump/dump.c
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@
#include "qemu-common.h"
#include "qemu/cutils.h"
#include "elf.h"
#include "cpu.h"
#include "exec/hwaddr.h"
#include "monitor/monitor.h"
#include "sysemu/kvm.h"
1 change: 0 additions & 1 deletion dump/win_dump.c
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@
#include "qemu-common.h"
#include "qemu/cutils.h"
#include "elf.h"
#include "cpu.h"
#include "exec/hwaddr.h"
#include "monitor/monitor.h"
#include "sysemu/kvm.h"
1 change: 0 additions & 1 deletion hw/arm/allwinner-a10.c
Original file line number Diff line number Diff line change
@@ -19,7 +19,6 @@
#include "exec/address-spaces.h"
#include "qapi/error.h"
#include "qemu/module.h"
#include "cpu.h"
#include "hw/sysbus.h"
#include "hw/arm/allwinner-a10.h"
#include "hw/misc/unimp.h"
1 change: 0 additions & 1 deletion hw/arm/allwinner-h3.c
Original file line number Diff line number Diff line change
@@ -24,7 +24,6 @@
#include "qemu/module.h"
#include "qemu/units.h"
#include "hw/qdev-core.h"
#include "cpu.h"
#include "hw/sysbus.h"
#include "hw/char/serial.h"
#include "hw/misc/unimp.h"
1 change: 0 additions & 1 deletion hw/arm/armv7m.c
Original file line number Diff line number Diff line change
@@ -10,7 +10,6 @@
#include "qemu/osdep.h"
#include "hw/arm/armv7m.h"
#include "qapi/error.h"
#include "cpu.h"
#include "hw/sysbus.h"
#include "hw/arm/boot.h"
#include "hw/loader.h"
1 change: 0 additions & 1 deletion hw/arm/aspeed.c
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@

#include "qemu/osdep.h"
#include "qapi/error.h"
#include "cpu.h"
#include "exec/address-spaces.h"
#include "hw/arm/boot.h"
#include "hw/arm/aspeed.h"
1 change: 0 additions & 1 deletion hw/arm/aspeed_ast2600.c
Original file line number Diff line number Diff line change
@@ -9,7 +9,6 @@

#include "qemu/osdep.h"
#include "qapi/error.h"
#include "cpu.h"
#include "exec/address-spaces.h"
#include "hw/misc/unimp.h"
#include "hw/arm/aspeed_soc.h"
1 change: 0 additions & 1 deletion hw/arm/aspeed_soc.c
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@

#include "qemu/osdep.h"
#include "qapi/error.h"
#include "cpu.h"
#include "exec/address-spaces.h"
#include "hw/misc/unimp.h"
#include "hw/arm/aspeed_soc.h"
1 change: 0 additions & 1 deletion hw/arm/bcm2836.c
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu/module.h"
#include "cpu.h"
#include "hw/arm/bcm2836.h"
#include "hw/arm/raspi_platform.h"
#include "hw/sysbus.h"
1 change: 0 additions & 1 deletion hw/arm/cubieboard.c
Original file line number Diff line number Diff line change
@@ -18,7 +18,6 @@
#include "qemu/osdep.h"
#include "exec/address-spaces.h"
#include "qapi/error.h"
#include "cpu.h"
#include "hw/boards.h"
#include "hw/qdev-properties.h"
#include "hw/arm/allwinner-a10.h"
1 change: 0 additions & 1 deletion hw/arm/digic_boards.c
Original file line number Diff line number Diff line change
@@ -27,7 +27,6 @@
#include "qapi/error.h"
#include "qemu-common.h"
#include "qemu/datadir.h"
#include "cpu.h"
#include "hw/boards.h"
#include "exec/address-spaces.h"
#include "qemu/error-report.h"
1 change: 0 additions & 1 deletion hw/arm/exynos4_boards.c
Original file line number Diff line number Diff line change
@@ -25,7 +25,6 @@
#include "qemu/units.h"
#include "qapi/error.h"
#include "qemu/error-report.h"
#include "cpu.h"
#include "hw/sysbus.h"
#include "net/net.h"
#include "hw/arm/boot.h"
1 change: 0 additions & 1 deletion hw/arm/fsl-imx25.c
Original file line number Diff line number Diff line change
@@ -24,7 +24,6 @@

#include "qemu/osdep.h"
#include "qapi/error.h"
#include "cpu.h"
#include "hw/arm/fsl-imx25.h"
#include "sysemu/sysemu.h"
#include "exec/address-spaces.h"
1 change: 0 additions & 1 deletion hw/arm/fsl-imx31.c
Original file line number Diff line number Diff line change
@@ -21,7 +21,6 @@

#include "qemu/osdep.h"
#include "qapi/error.h"
#include "cpu.h"
#include "hw/arm/fsl-imx31.h"
#include "sysemu/sysemu.h"
#include "exec/address-spaces.h"
1 change: 0 additions & 1 deletion hw/arm/imx25_pdk.c
Original file line number Diff line number Diff line change
@@ -25,7 +25,6 @@

#include "qemu/osdep.h"
#include "qapi/error.h"
#include "cpu.h"
#include "hw/qdev-properties.h"
#include "hw/arm/fsl-imx25.h"
#include "hw/boards.h"
1 change: 0 additions & 1 deletion hw/arm/kzm.c
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@

#include "qemu/osdep.h"
#include "qapi/error.h"
#include "cpu.h"
#include "hw/arm/fsl-imx31.h"
#include "hw/boards.h"
#include "qemu/error-report.h"
1 change: 0 additions & 1 deletion hw/arm/msf2-som.c
Original file line number Diff line number Diff line change
@@ -31,7 +31,6 @@
#include "hw/arm/boot.h"
#include "exec/address-spaces.h"
#include "hw/arm/msf2-soc.h"
#include "cpu.h"

#define DDR_BASE_ADDRESS 0xA0000000
#define DDR_SIZE (64 * MiB)
1 change: 0 additions & 1 deletion hw/arm/nrf51_soc.c
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@
#include "hw/misc/unimp.h"
#include "exec/address-spaces.h"
#include "qemu/log.h"
#include "cpu.h"

#include "hw/arm/nrf51.h"
#include "hw/arm/nrf51_soc.h"
1 change: 0 additions & 1 deletion hw/arm/orangepi.c
Original file line number Diff line number Diff line change
@@ -21,7 +21,6 @@
#include "qemu/units.h"
#include "exec/address-spaces.h"
#include "qapi/error.h"
#include "cpu.h"
#include "hw/boards.h"
#include "hw/qdev-properties.h"
#include "hw/arm/allwinner-h3.h"
1 change: 0 additions & 1 deletion hw/arm/raspi.c
Original file line number Diff line number Diff line change
@@ -16,7 +16,6 @@
#include "qemu/units.h"
#include "qemu/cutils.h"
#include "qapi/error.h"
#include "cpu.h"
#include "hw/arm/bcm2836.h"
#include "hw/registerfields.h"
#include "qemu/error-report.h"
1 change: 0 additions & 1 deletion hw/arm/stellaris.c
Original file line number Diff line number Diff line change
@@ -27,7 +27,6 @@
#include "migration/vmstate.h"
#include "hw/misc/unimp.h"
#include "hw/qdev-clock.h"
#include "cpu.h"
#include "qom/object.h"

#define GPIO_A 0
1 change: 0 additions & 1 deletion hw/arm/xlnx-zcu102.c
Original file line number Diff line number Diff line change
@@ -17,7 +17,6 @@

#include "qemu/osdep.h"
#include "qapi/error.h"
#include "cpu.h"
#include "hw/arm/xlnx-zynqmp.h"
#include "hw/boards.h"
#include "qemu/error-report.h"
1 change: 0 additions & 1 deletion hw/arm/xlnx-zynqmp.c
Original file line number Diff line number Diff line change
@@ -18,7 +18,6 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu/module.h"
#include "cpu.h"
#include "hw/arm/xlnx-zynqmp.h"
#include "hw/intc/arm_gic_common.h"
#include "hw/boards.h"
1 change: 0 additions & 1 deletion hw/char/spapr_vty.c
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@
#include "qemu/error-report.h"
#include "qemu/module.h"
#include "qapi/error.h"
#include "cpu.h"
#include "migration/vmstate.h"
#include "chardev/char-fe.h"
#include "hw/ppc/spapr.h"
1 change: 0 additions & 1 deletion hw/core/machine-qmp-cmds.c
Original file line number Diff line number Diff line change
@@ -8,7 +8,6 @@
*/

#include "qemu/osdep.h"
#include "cpu.h"
#include "hw/boards.h"
#include "qapi/error.h"
#include "qapi/qapi-builtin-visit.h"
1 change: 0 additions & 1 deletion hw/hppa/dino.c
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@
#include "qemu/module.h"
#include "qemu/units.h"
#include "qapi/error.h"
#include "cpu.h"
#include "hw/irq.h"
#include "hw/pci/pci.h"
#include "hw/pci/pci_bus.h"
1 change: 0 additions & 1 deletion hw/hppa/lasi.c
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@
#include "qemu/units.h"
#include "qemu/log.h"
#include "qapi/error.h"
#include "cpu.h"
#include "trace.h"
#include "hw/irq.h"
#include "sysemu/sysemu.h"
1 change: 0 additions & 1 deletion hw/i386/kvm/apic.c
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@

#include "qemu/osdep.h"
#include "qemu/module.h"
#include "cpu.h"
#include "hw/i386/apic_internal.h"
#include "hw/pci/msi.h"
#include "sysemu/hw_accel.h"
1 change: 0 additions & 1 deletion hw/i386/kvm/clock.c
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@
*/

#include "qemu/osdep.h"
#include "cpu.h"
#include "qemu/host-utils.h"
#include "qemu/module.h"
#include "sysemu/kvm.h"
1 change: 0 additions & 1 deletion hw/i386/kvmvapic.c
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@

#include "qemu/osdep.h"
#include "qemu/module.h"
#include "cpu.h"
#include "sysemu/sysemu.h"
#include "sysemu/cpus.h"
#include "sysemu/hw_accel.h"
1 change: 0 additions & 1 deletion hw/i386/microvm.c
Original file line number Diff line number Diff line change
@@ -49,7 +49,6 @@
#include "hw/pci-host/gpex.h"
#include "hw/usb/xhci.h"

#include "cpu.h"
#include "elf.h"
#include "kvm/kvm_i386.h"
#include "hw/xen/start_info.h"
1 change: 0 additions & 1 deletion hw/i386/pc_piix.c
Original file line number Diff line number Diff line change
@@ -49,7 +49,6 @@
#include "exec/memory.h"
#include "exec/address-spaces.h"
#include "hw/acpi/acpi.h"
#include "cpu.h"
#include "qapi/error.h"
#include "qemu/error-report.h"
#include "sysemu/xen.h"
1 change: 0 additions & 1 deletion hw/i386/vmport.c
Original file line number Diff line number Diff line change
@@ -37,7 +37,6 @@
#include "sysemu/hw_accel.h"
#include "sysemu/qtest.h"
#include "qemu/log.h"
#include "cpu.h"
#include "trace.h"
#include "qom/object.h"

1 change: 0 additions & 1 deletion hw/intc/apic.c
Original file line number Diff line number Diff line change
@@ -17,7 +17,6 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "qemu/thread.h"
#include "hw/i386/apic_internal.h"
#include "hw/i386/apic.h"
1 change: 0 additions & 1 deletion hw/intc/apic_common.c
Original file line number Diff line number Diff line change
@@ -22,7 +22,6 @@
#include "qemu/error-report.h"
#include "qemu/module.h"
#include "qapi/error.h"
#include "cpu.h"
#include "qapi/visitor.h"
#include "hw/i386/apic.h"
#include "hw/i386/apic_internal.h"
1 change: 0 additions & 1 deletion hw/intc/arm_gic_kvm.c
Original file line number Diff line number Diff line change
@@ -22,7 +22,6 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu/module.h"
#include "cpu.h"
#include "migration/blocker.h"
#include "sysemu/kvm.h"
#include "kvm_arm.h"
1 change: 0 additions & 1 deletion hw/intc/armv7m_nvic.c
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@

#include "qemu/osdep.h"
#include "qapi/error.h"
#include "cpu.h"
#include "hw/sysbus.h"
#include "migration/vmstate.h"
#include "qemu/timer.h"
1 change: 0 additions & 1 deletion hw/intc/grlib_irqmp.c
Original file line number Diff line number Diff line change
@@ -27,7 +27,6 @@
#include "qemu/osdep.h"
#include "hw/irq.h"
#include "hw/sysbus.h"
#include "cpu.h"

#include "hw/qdev-properties.h"
#include "hw/sparc/grlib.h"
1 change: 0 additions & 1 deletion hw/intc/openpic_kvm.c
Original file line number Diff line number Diff line change
@@ -24,7 +24,6 @@

#include "qemu/osdep.h"
#include "qapi/error.h"
#include "cpu.h"
#include <sys/ioctl.h>
#include "exec/address-spaces.h"
#include "hw/ppc/openpic.h"
Loading

0 comments on commit 2068cab

Please sign in to comment.