Skip to content

Commit

Permalink
hw: move headers to include/
Browse files Browse the repository at this point in the history
Many of these should be cleaned up with proper qdev-/QOM-ification.
Right now there are many catch-all headers in include/hw/ARCH depending
on cpu.h, and this makes it necessary to compile these files per-target.
However, fixing this does not belong in these patches.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Apr 8, 2013
1 parent bb585a7 commit 0d09e41
Show file tree
Hide file tree
Showing 511 changed files with 829 additions and 830 deletions.
8 changes: 4 additions & 4 deletions arch_init.c
Expand Up @@ -35,15 +35,15 @@
#include "qemu/bitmap.h"
#include "sysemu/arch_init.h"
#include "audio/audio.h"
#include "hw/pc.h"
#include "hw/i386/pc.h"
#include "hw/pci/pci.h"
#include "hw/audiodev.h"
#include "hw/audio/audio.h"
#include "sysemu/kvm.h"
#include "migration/migration.h"
#include "exec/gdbstub.h"
#include "hw/smbios.h"
#include "hw/i386/smbios.h"
#include "exec/address-spaces.h"
#include "hw/pcspk.h"
#include "hw/audio/pcspk.h"
#include "migration/page_cache.h"
#include "qemu/config-file.h"
#include "qmp-commands.h"
Expand Down
4 changes: 2 additions & 2 deletions block/iscsi.c
Expand Up @@ -31,14 +31,14 @@
#include "qemu/error-report.h"
#include "block/block_int.h"
#include "trace.h"
#include "hw/scsi-defs.h"
#include "block/scsi.h"

#include <iscsi/iscsi.h>
#include <iscsi/scsi-lowlevel.h>

#ifdef __linux__
#include <scsi/sg.h>
#include <hw/scsi-defs.h>
#include <block/scsi.h>
#endif

typedef struct IscsiLun {
Expand Down
2 changes: 1 addition & 1 deletion blockdev-nbd.c
Expand Up @@ -10,7 +10,7 @@
*/

#include "sysemu/blockdev.h"
#include "hw/block-common.h"
#include "hw/block/block.h"
#include "monitor/monitor.h"
#include "qapi/qmp/qerror.h"
#include "sysemu/sysemu.h"
Expand Down
2 changes: 1 addition & 1 deletion blockdev.c
Expand Up @@ -31,7 +31,7 @@
*/

#include "sysemu/blockdev.h"
#include "hw/block-common.h"
#include "hw/block/block.h"
#include "block/blockjob.h"
#include "monitor/monitor.h"
#include "qapi/qmp/qerror.h"
Expand Down
2 changes: 1 addition & 1 deletion exec.c
Expand Up @@ -31,7 +31,7 @@
#include "hw/qdev.h"
#include "qemu/osdep.h"
#include "sysemu/kvm.h"
#include "hw/xen.h"
#include "hw/xen/xen.h"
#include "qemu/timer.h"
#include "qemu/config-file.h"
#include "exec/memory.h"
Expand Down
2 changes: 1 addition & 1 deletion gdbstub.c
Expand Up @@ -1607,7 +1607,7 @@ static int cpu_gdb_write_register(CPUS390XState *env, uint8_t *mem_buf, int n)
}
#elif defined (TARGET_LM32)

#include "hw/lm32_pic.h"
#include "hw/lm32/lm32_pic.h"
#define NUM_CORE_REGS (32 + 7)

static int cpu_gdb_read_register(CPULM32State *env, uint8_t *mem_buf, int n)
Expand Down
4 changes: 2 additions & 2 deletions hw/9pfs/virtio-9p-device.c
Expand Up @@ -11,8 +11,8 @@
*
*/

#include "hw/virtio.h"
#include "hw/pc.h"
#include "hw/virtio/virtio.h"
#include "hw/i386/pc.h"
#include "qemu/sockets.h"
#include "virtio-9p.h"
#include "fsdev/qemu-fsdev.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/9pfs/virtio-9p-handle.c
Expand Up @@ -11,7 +11,7 @@
*
*/

#include "hw/virtio.h"
#include "hw/virtio/virtio.h"
#include "virtio-9p.h"
#include "virtio-9p-xattr.h"
#include <arpa/inet.h>
Expand Down
2 changes: 1 addition & 1 deletion hw/9pfs/virtio-9p-local.c
Expand Up @@ -11,7 +11,7 @@
*
*/

#include "hw/virtio.h"
#include "hw/virtio/virtio.h"
#include "virtio-9p.h"
#include "virtio-9p-xattr.h"
#include <arpa/inet.h>
Expand Down
2 changes: 1 addition & 1 deletion hw/9pfs/virtio-9p-posix-acl.c
Expand Up @@ -13,7 +13,7 @@

#include <sys/types.h>
#include "qemu/xattr.h"
#include "hw/virtio.h"
#include "hw/virtio/virtio.h"
#include "virtio-9p.h"
#include "fsdev/file-op-9p.h"
#include "virtio-9p-xattr.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/9pfs/virtio-9p-proxy.c
Expand Up @@ -11,7 +11,7 @@
*/
#include <sys/socket.h>
#include <sys/un.h>
#include "hw/virtio.h"
#include "hw/virtio/virtio.h"
#include "virtio-9p.h"
#include "qemu/error-report.h"
#include "fsdev/qemu-fsdev.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/9pfs/virtio-9p-synth.c
Expand Up @@ -12,7 +12,7 @@
*
*/

#include "hw/virtio.h"
#include "hw/virtio/virtio.h"
#include "virtio-9p.h"
#include "virtio-9p-xattr.h"
#include "fsdev/qemu-fsdev.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/9pfs/virtio-9p-xattr-user.c
Expand Up @@ -12,7 +12,7 @@
*/

#include <sys/types.h>
#include "hw/virtio.h"
#include "hw/virtio/virtio.h"
#include "virtio-9p.h"
#include "fsdev/file-op-9p.h"
#include "virtio-9p-xattr.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/9pfs/virtio-9p-xattr.c
Expand Up @@ -11,7 +11,7 @@
*
*/

#include "hw/virtio.h"
#include "hw/virtio/virtio.h"
#include "virtio-9p.h"
#include "fsdev/file-op-9p.h"
#include "virtio-9p-xattr.h"
Expand Down
4 changes: 2 additions & 2 deletions hw/9pfs/virtio-9p.c
Expand Up @@ -11,8 +11,8 @@
*
*/

#include "hw/virtio.h"
#include "hw/pc.h"
#include "hw/virtio/virtio.h"
#include "hw/i386/pc.h"
#include "qemu/sockets.h"
#include "virtio-9p.h"
#include "fsdev/qemu-fsdev.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/9pfs/virtio-9p.h
Expand Up @@ -6,7 +6,7 @@
#include <sys/time.h>
#include <utime.h>
#include <sys/resource.h>
#include "hw/virtio.h"
#include "hw/virtio/virtio.h"
#include "fsdev/file-op-9p.h"
#include "fsdev/virtio-9p-marshal.h"
#include "qemu/thread.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/ac97.c
Expand Up @@ -18,7 +18,7 @@
*/

#include "hw/hw.h"
#include "hw/audiodev.h"
#include "hw/audio/audio.h"
#include "audio/audio.h"
#include "hw/pci/pci.h"
#include "sysemu/dma.h"
Expand Down
4 changes: 2 additions & 2 deletions hw/acpi.c
Expand Up @@ -20,8 +20,8 @@
*/
#include "sysemu/sysemu.h"
#include "hw/hw.h"
#include "hw/pc.h"
#include "hw/acpi.h"
#include "hw/i386/pc.h"
#include "hw/acpi/acpi.h"
#include "monitor/monitor.h"
#include "qemu/config-file.h"
#include "qapi/opts-visitor.h"
Expand Down
6 changes: 3 additions & 3 deletions hw/acpi_ich9.c
Expand Up @@ -24,15 +24,15 @@
* GNU GPL, version 2 or (at your option) any later version.
*/
#include "hw/hw.h"
#include "hw/pc.h"
#include "hw/i386/pc.h"
#include "hw/pci/pci.h"
#include "qemu/timer.h"
#include "sysemu/sysemu.h"
#include "hw/acpi.h"
#include "hw/acpi/acpi.h"
#include "sysemu/kvm.h"
#include "exec/address-spaces.h"

#include "hw/ich9.h"
#include "hw/i386/ich9.h"

//#define DEBUG

Expand Down
10 changes: 5 additions & 5 deletions hw/acpi_piix4.c
Expand Up @@ -19,15 +19,15 @@
* GNU GPL, version 2 or (at your option) any later version.
*/
#include "hw/hw.h"
#include "hw/pc.h"
#include "hw/apm.h"
#include "hw/pm_smbus.h"
#include "hw/i386/pc.h"
#include "hw/isa/apm.h"
#include "hw/i2c/pm_smbus.h"
#include "hw/pci/pci.h"
#include "hw/acpi.h"
#include "hw/acpi/acpi.h"
#include "sysemu/sysemu.h"
#include "qemu/range.h"
#include "exec/ioport.h"
#include "hw/fw_cfg.h"
#include "hw/nvram/fw_cfg.h"
#include "exec/address-spaces.h"

//#define DEBUG
Expand Down
2 changes: 1 addition & 1 deletion hw/adb.c
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/
#include "hw/hw.h"
#include "hw/adb.h"
#include "hw/input/adb.h"
#include "ui/console.h"

/* debug ADB */
Expand Down
4 changes: 2 additions & 2 deletions hw/adlib.c
Expand Up @@ -23,9 +23,9 @@
*/

#include "hw/hw.h"
#include "hw/audiodev.h"
#include "hw/audio/audio.h"
#include "audio/audio.h"
#include "hw/isa.h"
#include "hw/isa/isa.h"

//#define DEBUG

Expand Down
6 changes: 3 additions & 3 deletions hw/alpha/dp264.c
Expand Up @@ -12,10 +12,10 @@
#include "hw/boards.h"
#include "hw/alpha_sys.h"
#include "sysemu/sysemu.h"
#include "hw/mc146818rtc.h"
#include "hw/timer/mc146818rtc.h"
#include "hw/ide.h"
#include "hw/i8254.h"
#include "hw/serial.h"
#include "hw/timer/i8254.h"
#include "hw/char/serial.h"

#define MAX_IDE_BUS 2

Expand Down
2 changes: 1 addition & 1 deletion hw/alpha_sys.h
Expand Up @@ -6,7 +6,7 @@
#include "hw/pci/pci.h"
#include "hw/pci/pci_host.h"
#include "hw/ide.h"
#include "hw/pc.h"
#include "hw/i386/pc.h"
#include "hw/irq.h"


Expand Down
2 changes: 1 addition & 1 deletion hw/alpha_typhoon.c
Expand Up @@ -9,7 +9,7 @@
#include "cpu.h"
#include "exec/exec-all.h"
#include "hw/hw.h"
#include "hw/devices.h"
#include "hw/arm/devices.h"
#include "sysemu/sysemu.h"
#include "hw/alpha_sys.h"
#include "exec/address-spaces.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/apb_pci.c
Expand Up @@ -31,7 +31,7 @@
#include "hw/pci/pci_host.h"
#include "hw/pci/pci_bridge.h"
#include "hw/pci/pci_bus.h"
#include "hw/apb_pci.h"
#include "hw/pci-host/apb.h"
#include "sysemu/sysemu.h"
#include "exec/address-spaces.h"

Expand Down
10 changes: 5 additions & 5 deletions hw/apic.c
Expand Up @@ -17,14 +17,14 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>
*/
#include "qemu/thread.h"
#include "hw/apic_internal.h"
#include "hw/apic.h"
#include "hw/ioapic.h"
#include "hw/i386/apic_internal.h"
#include "hw/i386/apic.h"
#include "hw/i386/ioapic.h"
#include "hw/pci/msi.h"
#include "qemu/host-utils.h"
#include "trace.h"
#include "hw/pc.h"
#include "hw/apic-msidef.h"
#include "hw/i386/pc.h"
#include "hw/i386/apic-msidef.h"

#define MAX_APIC_WORDS 8

Expand Down
4 changes: 2 additions & 2 deletions hw/apic_common.c
Expand Up @@ -17,8 +17,8 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>
*/
#include "hw/apic.h"
#include "hw/apic_internal.h"
#include "hw/i386/apic.h"
#include "hw/i386/apic_internal.h"
#include "trace.h"
#include "sysemu/kvm.h"

Expand Down
2 changes: 1 addition & 1 deletion hw/apm.c
Expand Up @@ -20,7 +20,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/

#include "hw/apm.h"
#include "hw/isa/apm.h"
#include "hw/hw.h"
#include "hw/pci/pci.h"

Expand Down
2 changes: 1 addition & 1 deletion hw/applesmc.c
Expand Up @@ -31,7 +31,7 @@
*/

#include "hw/hw.h"
#include "hw/isa.h"
#include "hw/isa/isa.h"
#include "ui/console.h"
#include "qemu/timer.h"

Expand Down
2 changes: 1 addition & 1 deletion hw/arm/armv7m.c
Expand Up @@ -8,7 +8,7 @@
*/

#include "hw/sysbus.h"
#include "hw/arm-misc.h"
#include "hw/arm.h"
#include "hw/loader.h"
#include "elf.h"

Expand Down
2 changes: 1 addition & 1 deletion hw/arm/boot.c
Expand Up @@ -9,7 +9,7 @@

#include "config.h"
#include "hw/hw.h"
#include "hw/arm-misc.h"
#include "hw/arm.h"
#include "sysemu/sysemu.h"
#include "hw/boards.h"
#include "hw/loader.h"
Expand Down
6 changes: 3 additions & 3 deletions hw/arm/collie.c
Expand Up @@ -11,10 +11,10 @@
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "hw/boards.h"
#include "hw/devices.h"
#include "hw/arm/devices.h"
#include "hw/strongarm.h"
#include "hw/arm-misc.h"
#include "hw/flash.h"
#include "hw/arm.h"
#include "hw/block/flash.h"
#include "sysemu/blockdev.h"
#include "exec/address-spaces.h"

Expand Down
4 changes: 2 additions & 2 deletions hw/arm/exynos4210.c
Expand Up @@ -24,9 +24,9 @@
#include "hw/boards.h"
#include "sysemu/sysemu.h"
#include "hw/sysbus.h"
#include "hw/arm-misc.h"
#include "hw/arm.h"
#include "hw/loader.h"
#include "hw/exynos4210.h"
#include "hw/arm/exynos4210.h"
#include "hw/usb/hcd-ehci.h"

#define EXYNOS4210_CHIPID_ADDR 0x10000000
Expand Down
4 changes: 2 additions & 2 deletions hw/arm/exynos4_boards.c
Expand Up @@ -24,9 +24,9 @@
#include "sysemu/sysemu.h"
#include "hw/sysbus.h"
#include "net/net.h"
#include "hw/arm-misc.h"
#include "hw/arm.h"
#include "exec/address-spaces.h"
#include "hw/exynos4210.h"
#include "hw/arm/exynos4210.h"
#include "hw/boards.h"

#undef DEBUG
Expand Down

0 comments on commit 0d09e41

Please sign in to comment.