]> git.proxmox.com Git - qemu.git/commitdiff
include: avoid useless includes of exec/ headers
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Apr 2013 15:29:59 +0000 (17:29 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Apr 2013 16:19:26 +0000 (18:19 +0200)
Headers in include/exec/ are for the deepest innards of QEMU,
they should almost never be included directly.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch_init.c
dump.c
hw/alpha/typhoon.c
hw/ide/ahci.c
hw/ide/internal.h
hw/net/vmxnet_tx_pkt.c
hw/usb/libhw.c
kvm-stub.c
translate-all.c

index fba0889bc7f5fcdd669cd4cf7d1c8680f8bb3ac5..92de1bde495dea2c7ee3c5e5c433618b7060559e 100644 (file)
@@ -40,7 +40,6 @@
 #include "hw/audio/audio.h"
 #include "sysemu/kvm.h"
 #include "migration/migration.h"
-#include "exec/gdbstub.h"
 #include "hw/i386/smbios.h"
 #include "exec/address-spaces.h"
 #include "hw/audio/pcspk.h"
diff --git a/dump.c b/dump.c
index a25f5096eb51b63f7bd068874e5e20f1cd24beb3..b34f143c4206f339ab159271c67e4f3767fe2a37 100644 (file)
--- a/dump.c
+++ b/dump.c
@@ -23,7 +23,6 @@
 #include "sysemu/memory_mapping.h"
 #include "qapi/error.h"
 #include "qmp-commands.h"
-#include "exec/gdbstub.h"
 
 static uint16_t cpu_convert_to_target16(uint16_t val, int endian)
 {
@@ -268,6 +267,11 @@ static int write_elf64_note(DumpState *s)
     return 0;
 }
 
+static inline int cpu_index(CPUState *cpu)
+{
+    return cpu->cpu_index + 1;
+}
+
 static int write_elf64_notes(DumpState *s)
 {
     CPUArchState *env;
index 68420f40cb91d3cd98d8356846b4d3897577eaa8..1ead1877c789992a87e4813168cb7b821c119e8e 100644 (file)
@@ -7,7 +7,6 @@
  */
 
 #include "cpu.h"
-#include "exec/exec-all.h"
 #include "hw/hw.h"
 #include "hw/devices.h"
 #include "sysemu/sysemu.h"
index d0ae8afba2d47113e9094e0214f936cbd981fc2c..3405583f59364317ddd471ab371b738e952cbacb 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "monitor/monitor.h"
 #include "sysemu/dma.h"
-#include "exec/cpu-common.h"
 #include "internal.h"
 #include <hw/ide/pci.h>
 #include <hw/ide/ahci.h>
index 2c89b50c5ece5c3bfbaeea19a2cf76a2d725b7ea..0efb2da19b0544c5f7216ade39a07a86c3d6049c 100644 (file)
@@ -8,7 +8,6 @@
  */
 #include <hw/ide.h>
 #include <hw/isa/isa.h>
-#include "exec/iorange.h"
 #include "sysemu/dma.h"
 #include "sysemu/sysemu.h"
 #include "hw/block/block.h"
index b1e795b3b2d7ea7851bde8e028f24a7619789b15..fc01e4da3ce8d4643dfe48a80c65d5ce59cb54c3 100644 (file)
@@ -15,6 +15,7 @@
  *
  */
 
+#include "hw/hw.h"
 #include "vmxnet_tx_pkt.h"
 #include "net/eth.h"
 #include "qemu-common.h"
@@ -22,7 +23,6 @@
 #include "net/checksum.h"
 #include "net/tap.h"
 #include "net/net.h"
-#include "exec/cpu-common.h"
 
 enum {
     VMXNET_TX_PKT_VHDR_FRAG = 0,
index 75f022f4ec847025b5ee191b03fa8d5dd9f268e3..d2d4b51b942640d0df0336dadb6e282bf0916762 100644 (file)
@@ -20,7 +20,7 @@
  * THE SOFTWARE.
  */
 #include "qemu-common.h"
-#include "exec/cpu-common.h"
+#include "hw/hw.h"
 #include "hw/usb.h"
 #include "sysemu/dma.h"
 
index 760aadc874339199565aaf4705825b17a97ad936..f6137d343a3f4b077b23607b542c658604184cb6 100644 (file)
@@ -14,7 +14,6 @@
 #include "hw/hw.h"
 #include "hw/pci/msi.h"
 #include "cpu.h"
-#include "exec/gdbstub.h"
 #include "sysemu/kvm.h"
 
 KVMState *kvm_state;
index a98c646d927b1e70f092e7399e43d571b9621b97..08dd03881634c8bc9a607a5b3a1135a8a7a84007 100644 (file)
@@ -35,9 +35,6 @@
 #include "cpu.h"
 #include "disas/disas.h"
 #include "tcg.h"
-#include "qemu/timer.h"
-#include "exec/memory.h"
-#include "exec/address-spaces.h"
 #if defined(CONFIG_USER_ONLY)
 #include "qemu.h"
 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
@@ -55,6 +52,8 @@
 #include <libutil.h>
 #endif
 #endif
+#else
+#include "exec/address-spaces.h"
 #endif
 
 #include "exec/cputlb.h"