Browse Source

hw: explicitly include qemu/log.h

Move the inclusion out of hw/hw.h, most files do not need it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Paolo Bonzini 9 years ago
parent
commit
03dd024ff5
90 changed files with 92 additions and 2 deletions
  1. 1 0
      hw/arm/ast2400.c
  2. 1 0
      hw/arm/nseries.c
  3. 1 0
      hw/arm/palmetto-bmc.c
  4. 1 0
      hw/arm/pxa2xx_gpio.c
  5. 1 0
      hw/arm/stellaris.c
  6. 1 0
      hw/arm/strongarm.c
  7. 1 0
      hw/arm/xlnx-ep108.c
  8. 1 0
      hw/audio/pl041.c
  9. 1 0
      hw/block/m25p80.c
  10. 1 0
      hw/block/pflash_cfi01.c
  11. 1 0
      hw/char/bcm2835_aux.c
  12. 4 0
      hw/char/cadence_uart.c
  13. 1 0
      hw/char/digic-uart.c
  14. 1 0
      hw/char/imx_serial.c
  15. 1 0
      hw/char/pl011.c
  16. 1 0
      hw/char/stm32f2xx_usart.c
  17. 1 0
      hw/display/bcm2835_fb.c
  18. 1 0
      hw/display/cg3.c
  19. 1 0
      hw/display/pl110.c
  20. 1 0
      hw/display/virtio-gpu.c
  21. 1 0
      hw/dma/bcm2835_dma.c
  22. 1 0
      hw/dma/pl080.c
  23. 1 0
      hw/dma/pl330.c
  24. 1 0
      hw/dma/rc4030.c
  25. 1 0
      hw/gpio/imx_gpio.c
  26. 1 0
      hw/gpio/pl061.c
  27. 1 0
      hw/i2c/imx_i2c.c
  28. 1 0
      hw/i2c/versatile_i2c.c
  29. 1 0
      hw/input/pl050.c
  30. 1 0
      hw/intc/allwinner-a10-pic.c
  31. 1 0
      hw/intc/arm_gic.c
  32. 1 0
      hw/intc/arm_gicv2m.c
  33. 1 0
      hw/intc/armv7m_nvic.c
  34. 1 0
      hw/intc/bcm2835_ic.c
  35. 1 0
      hw/intc/bcm2836_control.c
  36. 1 0
      hw/intc/i8259.c
  37. 1 0
      hw/intc/imx_avic.c
  38. 1 0
      hw/intc/openpic.c
  39. 1 0
      hw/intc/pl190.c
  40. 1 0
      hw/misc/arm11scu.c
  41. 1 0
      hw/misc/arm_integrator_debug.c
  42. 1 0
      hw/misc/arm_l2x0.c
  43. 1 0
      hw/misc/arm_sysctl.c
  44. 1 0
      hw/misc/bcm2835_mbox.c
  45. 1 0
      hw/misc/bcm2835_property.c
  46. 1 0
      hw/misc/imx25_ccm.c
  47. 1 0
      hw/misc/imx31_ccm.c
  48. 1 0
      hw/misc/imx6_ccm.c
  49. 1 0
      hw/misc/imx6_src.c
  50. 1 0
      hw/misc/imx_ccm.c
  51. 1 0
      hw/misc/macio/cuda.c
  52. 1 0
      hw/misc/macio/mac_dbdma.c
  53. 1 0
      hw/misc/mips_cmgcr.c
  54. 1 0
      hw/misc/mips_cpc.c
  55. 1 0
      hw/misc/mips_itu.c
  56. 1 0
      hw/misc/stm32f2xx_syscfg.c
  57. 1 0
      hw/misc/zynq-xadc.c
  58. 1 0
      hw/misc/zynq_slcr.c
  59. 1 0
      hw/net/allwinner_emac.c
  60. 1 0
      hw/net/fsl_etsec/etsec.c
  61. 1 1
      hw/net/fsl_etsec/rings.c
  62. 1 0
      hw/net/imx_fec.c
  63. 1 0
      hw/net/lan9118.c
  64. 1 0
      hw/net/spapr_llan.c
  65. 1 0
      hw/pci-host/apb.c
  66. 1 0
      hw/pci-host/versatile.c
  67. 1 0
      hw/ppc/spapr.c
  68. 1 0
      hw/ppc/spapr_hcall.c
  69. 1 0
      hw/ppc/spapr_iommu.c
  70. 1 0
      hw/ppc/spapr_rtas.c
  71. 1 0
      hw/ppc/spapr_vio.c
  72. 1 0
      hw/sd/pl181.c
  73. 1 0
      hw/sd/sd.c
  74. 1 0
      hw/sd/sdhci.c
  75. 1 0
      hw/ssi/imx_spi.c
  76. 1 0
      hw/ssi/pl022.c
  77. 1 0
      hw/timer/allwinner-a10-pit.c
  78. 1 0
      hw/timer/arm_timer.c
  79. 1 0
      hw/timer/digic-timer.c
  80. 1 0
      hw/timer/imx_epit.c
  81. 1 0
      hw/timer/imx_gpt.c
  82. 1 0
      hw/timer/pl031.c
  83. 1 0
      hw/timer/stm32f2xx_timer.c
  84. 1 0
      hw/watchdog/wdt_diag288.c
  85. 0 1
      include/hw/hw.h
  86. 1 0
      monitor.c
  87. 1 0
      target-arm/arm-powerctl.c
  88. 1 0
      target-arm/kvm.c
  89. 1 0
      target-arm/kvm32.c
  90. 1 0
      vl.c

+ 1 - 0
hw/arm/ast2400.c

@@ -17,6 +17,7 @@
 #include "exec/address-spaces.h"
 #include "hw/arm/ast2400.h"
 #include "hw/char/serial.h"
+#include "qemu/log.h"
 
 #define AST2400_UART_5_BASE      0x00184000
 #define AST2400_IOMEM_SIZE       0x00200000

+ 1 - 0
hw/arm/nseries.c

@@ -37,6 +37,7 @@
 #include "hw/loader.h"
 #include "sysemu/block-backend.h"
 #include "hw/sysbus.h"
+#include "qemu/log.h"
 #include "exec/address-spaces.h"
 
 /* Nokia N8x0 support */

+ 1 - 0
hw/arm/palmetto-bmc.c

@@ -17,6 +17,7 @@
 #include "hw/arm/arm.h"
 #include "hw/arm/ast2400.h"
 #include "hw/boards.h"
+#include "qemu/log.h"
 
 static struct arm_boot_info palmetto_bmc_binfo = {
     .loader_start = AST2400_SDRAM_BASE,

+ 1 - 0
hw/arm/pxa2xx_gpio.c

@@ -12,6 +12,7 @@
 #include "hw/hw.h"
 #include "hw/sysbus.h"
 #include "hw/arm/pxa.h"
+#include "qemu/log.h"
 
 #define PXA2XX_GPIO_BANKS	4
 

+ 1 - 0
hw/arm/stellaris.c

@@ -17,6 +17,7 @@
 #include "hw/i2c/i2c.h"
 #include "net/net.h"
 #include "hw/boards.h"
+#include "qemu/log.h"
 #include "exec/address-spaces.h"
 #include "sysemu/sysemu.h"
 

+ 1 - 0
hw/arm/strongarm.c

@@ -38,6 +38,7 @@
 #include "sysemu/sysemu.h"
 #include "hw/ssi/ssi.h"
 #include "qemu/cutils.h"
+#include "qemu/log.h"
 
 //#define DEBUG
 

+ 1 - 0
hw/arm/xlnx-ep108.c

@@ -23,6 +23,7 @@
 #include "hw/boards.h"
 #include "qemu/error-report.h"
 #include "exec/address-spaces.h"
+#include "qemu/log.h"
 
 typedef struct XlnxEP108 {
     XlnxZynqMPState soc;

+ 1 - 0
hw/audio/pl041.c

@@ -22,6 +22,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
+#include "qemu/log.h"
 
 #include "pl041.h"
 #include "lm4549.h"

+ 1 - 0
hw/block/m25p80.c

@@ -27,6 +27,7 @@
 #include "sysemu/blockdev.h"
 #include "hw/ssi/ssi.h"
 #include "qemu/bitops.h"
+#include "qemu/log.h"
 
 #ifndef M25P80_ERR_DEBUG
 #define M25P80_ERR_DEBUG 0

+ 1 - 0
hw/block/pflash_cfi01.c

@@ -45,6 +45,7 @@
 #include "qemu/bitops.h"
 #include "exec/address-spaces.h"
 #include "qemu/host-utils.h"
+#include "qemu/log.h"
 #include "hw/sysbus.h"
 #include "sysemu/sysemu.h"
 

+ 1 - 0
hw/char/bcm2835_aux.c

@@ -22,6 +22,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/char/bcm2835_aux.h"
+#include "qemu/log.h"
 
 #define AUX_IRQ         0x0
 #define AUX_ENABLES     0x4

+ 4 - 0
hw/char/cadence_uart.c

@@ -17,6 +17,10 @@
  */
 
 #include "qemu/osdep.h"
+#include "hw/sysbus.h"
+#include "sysemu/char.h"
+#include "qemu/timer.h"
+#include "qemu/log.h"
 #include "hw/char/cadence_uart.h"
 
 #ifdef CADENCE_UART_ERR_DEBUG

+ 1 - 0
hw/char/digic-uart.c

@@ -30,6 +30,7 @@
 #include "hw/hw.h"
 #include "hw/sysbus.h"
 #include "sysemu/char.h"
+#include "qemu/log.h"
 
 #include "hw/char/digic-uart.h"
 

+ 1 - 0
hw/char/imx_serial.c

@@ -22,6 +22,7 @@
 #include "hw/char/imx_serial.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/char.h"
+#include "qemu/log.h"
 
 #ifndef DEBUG_IMX_UART
 #define DEBUG_IMX_UART 0

+ 1 - 0
hw/char/pl011.c

@@ -10,6 +10,7 @@
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
 #include "sysemu/char.h"
+#include "qemu/log.h"
 
 #define TYPE_PL011 "pl011"
 #define PL011(obj) OBJECT_CHECK(PL011State, (obj), TYPE_PL011)

+ 1 - 0
hw/char/stm32f2xx_usart.c

@@ -24,6 +24,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/char/stm32f2xx_usart.h"
+#include "qemu/log.h"
 
 #ifndef STM_USART_ERR_DEBUG
 #define STM_USART_ERR_DEBUG 0

+ 1 - 0
hw/display/bcm2835_fb.c

@@ -29,6 +29,7 @@
 #include "hw/display/framebuffer.h"
 #include "ui/pixel_ops.h"
 #include "hw/misc/bcm2835_mbox_defs.h"
+#include "qemu/log.h"
 
 #define DEFAULT_VCRAM_SIZE 0x4000000
 #define BCM2835_FB_OFFSET  0x00100000

+ 1 - 0
hw/display/cg3.c

@@ -31,6 +31,7 @@
 #include "ui/console.h"
 #include "hw/sysbus.h"
 #include "hw/loader.h"
+#include "qemu/log.h"
 
 /* Change to 1 to enable debugging */
 #define DEBUG_CG3 0

+ 1 - 0
hw/display/pl110.c

@@ -12,6 +12,7 @@
 #include "ui/console.h"
 #include "framebuffer.h"
 #include "ui/pixel_ops.h"
+#include "qemu/log.h"
 
 #define PL110_CR_EN   0x001
 #define PL110_CR_BGR  0x100

+ 1 - 0
hw/display/virtio-gpu.c

@@ -19,6 +19,7 @@
 #include "hw/virtio/virtio.h"
 #include "hw/virtio/virtio-gpu.h"
 #include "hw/virtio/virtio-bus.h"
+#include "qemu/log.h"
 
 static struct virtio_gpu_simple_resource*
 virtio_gpu_find_resource(VirtIOGPU *g, uint32_t resource_id);

+ 1 - 0
hw/dma/bcm2835_dma.c

@@ -6,6 +6,7 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "hw/dma/bcm2835_dma.h"
+#include "qemu/log.h"
 
 /* DMA CS Control and Status bits */
 #define BCM2708_DMA_ACTIVE      (1 << 0)

+ 1 - 0
hw/dma/pl080.c

@@ -10,6 +10,7 @@
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
 #include "exec/address-spaces.h"
+#include "qemu/log.h"
 
 #define PL080_MAX_CHANNELS 8
 #define PL080_CONF_E    0x1

+ 1 - 0
hw/dma/pl330.c

@@ -19,6 +19,7 @@
 #include "qapi/error.h"
 #include "qemu/timer.h"
 #include "sysemu/dma.h"
+#include "qemu/log.h"
 
 #ifndef PL330_ERR_DEBUG
 #define PL330_ERR_DEBUG 0

+ 1 - 0
hw/dma/rc4030.c

@@ -27,6 +27,7 @@
 #include "hw/mips/mips.h"
 #include "hw/sysbus.h"
 #include "qemu/timer.h"
+#include "qemu/log.h"
 #include "exec/address-spaces.h"
 #include "trace.h"
 

+ 1 - 0
hw/gpio/imx_gpio.c

@@ -19,6 +19,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/gpio/imx_gpio.h"
+#include "qemu/log.h"
 
 #ifndef DEBUG_IMX_GPIO
 #define DEBUG_IMX_GPIO 0

+ 1 - 0
hw/gpio/pl061.c

@@ -10,6 +10,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
+#include "qemu/log.h"
 
 //#define DEBUG_PL061 1
 

+ 1 - 0
hw/i2c/imx_i2c.c

@@ -21,6 +21,7 @@
 #include "qemu/osdep.h"
 #include "hw/i2c/imx_i2c.h"
 #include "hw/i2c/i2c.h"
+#include "qemu/log.h"
 
 #ifndef DEBUG_IMX_I2C
 #define DEBUG_IMX_I2C 0

+ 1 - 0
hw/i2c/versatile_i2c.c

@@ -24,6 +24,7 @@
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
 #include "bitbang_i2c.h"
+#include "qemu/log.h"
 
 #define TYPE_VERSATILE_I2C "versatile_i2c"
 #define VERSATILE_I2C(obj) \

+ 1 - 0
hw/input/pl050.c

@@ -10,6 +10,7 @@
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
 #include "hw/input/ps2.h"
+#include "qemu/log.h"
 
 #define TYPE_PL050 "pl050"
 #define PL050(obj) OBJECT_CHECK(PL050State, (obj), TYPE_PL050)

+ 1 - 0
hw/intc/allwinner-a10-pic.c

@@ -20,6 +20,7 @@
 #include "hw/devices.h"
 #include "sysemu/sysemu.h"
 #include "hw/intc/allwinner-a10-pic.h"
+#include "qemu/log.h"
 
 static void aw_a10_pic_update(AwA10PICState *s)
 {

+ 1 - 0
hw/intc/arm_gic.c

@@ -23,6 +23,7 @@
 #include "gic_internal.h"
 #include "qapi/error.h"
 #include "qom/cpu.h"
+#include "qemu/log.h"
 #include "trace.h"
 
 //#define DEBUG_GIC

+ 1 - 0
hw/intc/arm_gicv2m.c

@@ -30,6 +30,7 @@
 #include "hw/sysbus.h"
 #include "hw/pci/msi.h"
 #include "sysemu/kvm.h"
+#include "qemu/log.h"
 
 #define TYPE_ARM_GICV2M "arm-gicv2m"
 #define ARM_GICV2M(obj) OBJECT_CHECK(ARMGICv2mState, (obj), TYPE_ARM_GICV2M)

+ 1 - 0
hw/intc/armv7m_nvic.c

@@ -19,6 +19,7 @@
 #include "hw/arm/arm.h"
 #include "exec/address-spaces.h"
 #include "gic_internal.h"
+#include "qemu/log.h"
 
 typedef struct {
     GICState gic;

+ 1 - 0
hw/intc/bcm2835_ic.c

@@ -14,6 +14,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/intc/bcm2835_ic.h"
+#include "qemu/log.h"
 
 #define GPU_IRQS 64
 #define ARM_IRQS 8

+ 1 - 0
hw/intc/bcm2836_control.c

@@ -15,6 +15,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/intc/bcm2836_control.h"
+#include "qemu/log.h"
 
 #define REG_GPU_ROUTE           0x0c
 #define REG_TIMERCONTROL        0x40

+ 1 - 0
hw/intc/i8259.c

@@ -27,6 +27,7 @@
 #include "hw/isa/isa.h"
 #include "monitor/monitor.h"
 #include "qemu/timer.h"
+#include "qemu/log.h"
 #include "hw/isa/i8259_internal.h"
 
 /* debug PIC */

+ 1 - 0
hw/intc/imx_avic.c

@@ -17,6 +17,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/intc/imx_avic.h"
+#include "qemu/log.h"
 
 #ifndef DEBUG_IMX_AVIC
 #define DEBUG_IMX_AVIC 0

+ 1 - 0
hw/intc/openpic.c

@@ -44,6 +44,7 @@
 #include "qapi/error.h"
 #include "qemu/bitops.h"
 #include "qapi/qmp/qerror.h"
+#include "qemu/log.h"
 
 //#define DEBUG_OPENPIC
 

+ 1 - 0
hw/intc/pl190.c

@@ -9,6 +9,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
+#include "qemu/log.h"
 
 /* The number of virtual priority levels.  16 user vectors plus the
    unvectored IRQ.  Chained interrupts would require an additional level

+ 1 - 0
hw/misc/arm11scu.c

@@ -10,6 +10,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/misc/arm11scu.h"
+#include "qemu/log.h"
 
 static uint64_t mpcore_scu_read(void *opaque, hwaddr offset,
                                 unsigned size)

+ 1 - 0
hw/misc/arm_integrator_debug.c

@@ -19,6 +19,7 @@
 #include "hw/sysbus.h"
 #include "exec/address-spaces.h"
 #include "hw/misc/arm_integrator_debug.h"
+#include "qemu/log.h"
 
 #define INTEGRATOR_DEBUG(obj) \
     OBJECT_CHECK(IntegratorDebugState, (obj), TYPE_INTEGRATOR_DEBUG)

+ 1 - 0
hw/misc/arm_l2x0.c

@@ -20,6 +20,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
+#include "qemu/log.h"
 
 /* L2C-310 r3p2 */
 #define CACHE_ID 0x410000c8

+ 1 - 0
hw/misc/arm_sysctl.c

@@ -14,6 +14,7 @@
 #include "hw/sysbus.h"
 #include "hw/arm/primecell.h"
 #include "sysemu/sysemu.h"
+#include "qemu/log.h"
 
 #define LOCK_VALUE 0xa05f
 

+ 1 - 0
hw/misc/bcm2835_mbox.c

@@ -11,6 +11,7 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "hw/misc/bcm2835_mbox.h"
+#include "qemu/log.h"
 
 #define MAIL0_PEEK   0x90
 #define MAIL0_SENDER 0x94

+ 1 - 0
hw/misc/bcm2835_property.c

@@ -8,6 +8,7 @@
 #include "hw/misc/bcm2835_property.h"
 #include "hw/misc/bcm2835_mbox_defs.h"
 #include "sysemu/dma.h"
+#include "qemu/log.h"
 
 /* https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface */
 

+ 1 - 0
hw/misc/imx25_ccm.c

@@ -13,6 +13,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/misc/imx25_ccm.h"
+#include "qemu/log.h"
 
 #ifndef DEBUG_IMX25_CCM
 #define DEBUG_IMX25_CCM 0

+ 1 - 0
hw/misc/imx31_ccm.c

@@ -13,6 +13,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/misc/imx31_ccm.h"
+#include "qemu/log.h"
 
 #define CKIH_FREQ 26000000 /* 26MHz crystal input */
 

+ 1 - 0
hw/misc/imx6_ccm.c

@@ -12,6 +12,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/misc/imx6_ccm.h"
+#include "qemu/log.h"
 
 #ifndef DEBUG_IMX6_CCM
 #define DEBUG_IMX6_CCM 0

+ 1 - 0
hw/misc/imx6_src.c

@@ -12,6 +12,7 @@
 #include "hw/misc/imx6_src.h"
 #include "sysemu/sysemu.h"
 #include "qemu/bitops.h"
+#include "qemu/log.h"
 #include "arm-powerctl.h"
 
 #ifndef DEBUG_IMX6_SRC

+ 1 - 0
hw/misc/imx_ccm.c

@@ -13,6 +13,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/misc/imx_ccm.h"
+#include "qemu/log.h"
 
 #ifndef DEBUG_IMX_CCM
 #define DEBUG_IMX_CCM 0

+ 1 - 0
hw/misc/macio/cuda.c

@@ -29,6 +29,7 @@
 #include "qemu/timer.h"
 #include "sysemu/sysemu.h"
 #include "qemu/cutils.h"
+#include "qemu/log.h"
 
 /* XXX: implement all timer modes */
 

+ 1 - 0
hw/misc/macio/mac_dbdma.c

@@ -41,6 +41,7 @@
 #include "hw/isa/isa.h"
 #include "hw/ppc/mac_dbdma.h"
 #include "qemu/main-loop.h"
+#include "qemu/log.h"
 
 /* debug DBDMA */
 //#define DEBUG_DBDMA

+ 1 - 0
hw/misc/mips_cmgcr.c

@@ -11,6 +11,7 @@
 
 #include "qemu/osdep.h"
 #include "qapi/error.h"
+#include "qemu/log.h"
 #include "hw/hw.h"
 #include "hw/sysbus.h"
 #include "sysemu/sysemu.h"

+ 1 - 0
hw/misc/mips_cpc.c

@@ -20,6 +20,7 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "cpu.h"
+#include "qemu/log.h"
 #include "hw/sysbus.h"
 
 #include "hw/misc/mips_cpc.h"

+ 1 - 0
hw/misc/mips_itu.c

@@ -20,6 +20,7 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "cpu.h"
+#include "qemu/log.h"
 #include "hw/hw.h"
 #include "hw/sysbus.h"
 #include "sysemu/sysemu.h"

+ 1 - 0
hw/misc/stm32f2xx_syscfg.c

@@ -24,6 +24,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/misc/stm32f2xx_syscfg.h"
+#include "qemu/log.h"
 
 #ifndef STM_SYSCFG_ERR_DEBUG
 #define STM_SYSCFG_ERR_DEBUG 0

+ 1 - 0
hw/misc/zynq-xadc.c

@@ -18,6 +18,7 @@
 #include "hw/misc/zynq-xadc.h"
 #include "qemu/timer.h"
 #include "sysemu/sysemu.h"
+#include "qemu/log.h"
 
 enum {
     CFG                = 0x000 / 4,

+ 1 - 0
hw/misc/zynq_slcr.c

@@ -19,6 +19,7 @@
 #include "qemu/timer.h"
 #include "hw/sysbus.h"
 #include "sysemu/sysemu.h"
+#include "qemu/log.h"
 
 #ifndef ZYNQ_SLCR_ERR_DEBUG
 #define ZYNQ_SLCR_ERR_DEBUG 0

+ 1 - 0
hw/net/allwinner_emac.c

@@ -21,6 +21,7 @@
 #include "net/net.h"
 #include "qemu/fifo8.h"
 #include "hw/net/allwinner_emac.h"
+#include "qemu/log.h"
 #include <zlib.h>
 
 static uint8_t padding[60];

+ 1 - 0
hw/net/fsl_etsec/etsec.c

@@ -33,6 +33,7 @@
 #include "hw/ptimer.h"
 #include "etsec.h"
 #include "registers.h"
+#include "qemu/log.h"
 
 /* #define HEX_DUMP */
 /* #define DEBUG_REGISTER */

+ 1 - 1
hw/net/fsl_etsec/rings.c

@@ -23,7 +23,7 @@
  */
 #include "qemu/osdep.h"
 #include "net/checksum.h"
-
+#include "qemu/log.h"
 #include "etsec.h"
 #include "registers.h"
 

+ 1 - 0
hw/net/imx_fec.c

@@ -24,6 +24,7 @@
 #include "qemu/osdep.h"
 #include "hw/net/imx_fec.h"
 #include "sysemu/dma.h"
+#include "qemu/log.h"
 
 /* For crc32 */
 #include <zlib.h>

+ 1 - 0
hw/net/lan9118.c

@@ -16,6 +16,7 @@
 #include "hw/devices.h"
 #include "sysemu/sysemu.h"
 #include "hw/ptimer.h"
+#include "qemu/log.h"
 /* For crc32 */
 #include <zlib.h>
 

+ 1 - 0
hw/net/spapr_llan.c

@@ -28,6 +28,7 @@
 #include "qemu-common.h"
 #include "cpu.h"
 #include "hw/hw.h"
+#include "qemu/log.h"
 #include "net/net.h"
 #include "hw/qdev.h"
 #include "hw/ppc/spapr.h"

+ 1 - 0
hw/pci-host/apb.c

@@ -36,6 +36,7 @@
 #include "hw/pci-host/apb.h"
 #include "sysemu/sysemu.h"
 #include "exec/address-spaces.h"
+#include "qemu/log.h"
 
 /* debug APB */
 //#define DEBUG_APB

+ 1 - 0
hw/pci-host/versatile.c

@@ -13,6 +13,7 @@
 #include "hw/pci/pci_bus.h"
 #include "hw/pci/pci_host.h"
 #include "exec/address-spaces.h"
+#include "qemu/log.h"
 
 /* Old and buggy versions of QEMU used the wrong mapping from
  * PCI IRQs to system interrupt lines. Unfortunately the Linux

+ 1 - 0
hw/ppc/spapr.c

@@ -29,6 +29,7 @@
 #include "sysemu/sysemu.h"
 #include "sysemu/numa.h"
 #include "hw/hw.h"
+#include "qemu/log.h"
 #include "hw/fw-path-provider.h"
 #include "elf.h"
 #include "net/net.h"

+ 1 - 0
hw/ppc/spapr_hcall.c

@@ -1,6 +1,7 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "sysemu/sysemu.h"
+#include "qemu/log.h"
 #include "cpu.h"
 #include "helper_regs.h"
 #include "hw/ppc/spapr.h"

+ 1 - 0
hw/ppc/spapr_iommu.c

@@ -18,6 +18,7 @@
  */
 #include "qemu/osdep.h"
 #include "hw/hw.h"
+#include "qemu/log.h"
 #include "sysemu/kvm.h"
 #include "hw/qdev.h"
 #include "kvm_ppc.h"

+ 1 - 0
hw/ppc/spapr_rtas.c

@@ -26,6 +26,7 @@
  */
 #include "qemu/osdep.h"
 #include "cpu.h"
+#include "qemu/log.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/char.h"
 #include "hw/qdev.h"

+ 1 - 0
hw/ppc/spapr_vio.c

@@ -22,6 +22,7 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "hw/hw.h"
+#include "qemu/log.h"
 #include "sysemu/sysemu.h"
 #include "hw/boards.h"
 #include "hw/loader.h"

+ 1 - 0
hw/sd/pl181.c

@@ -12,6 +12,7 @@
 #include "sysemu/blockdev.h"
 #include "hw/sysbus.h"
 #include "hw/sd/sd.h"
+#include "qemu/log.h"
 
 //#define DEBUG_PL181 1
 

+ 1 - 0
hw/sd/sd.c

@@ -39,6 +39,7 @@
 #include "hw/qdev-properties.h"
 #include "qemu/error-report.h"
 #include "qemu/timer.h"
+#include "qemu/log.h"
 
 //#define DEBUG_SD 1
 

+ 1 - 0
hw/sd/sdhci.c

@@ -30,6 +30,7 @@
 #include "qemu/timer.h"
 #include "qemu/bitops.h"
 #include "sdhci-internal.h"
+#include "qemu/log.h"
 
 /* host controller debug messages */
 #ifndef SDHC_DEBUG

+ 1 - 0
hw/ssi/imx_spi.c

@@ -11,6 +11,7 @@
 #include "qemu/osdep.h"
 #include "hw/ssi/imx_spi.h"
 #include "sysemu/sysemu.h"
+#include "qemu/log.h"
 
 #ifndef DEBUG_IMX_SPI
 #define DEBUG_IMX_SPI 0

+ 1 - 0
hw/ssi/pl022.c

@@ -10,6 +10,7 @@
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
 #include "hw/ssi/ssi.h"
+#include "qemu/log.h"
 
 //#define DEBUG_PL022 1
 

+ 1 - 0
hw/timer/allwinner-a10-pit.c

@@ -19,6 +19,7 @@
 #include "hw/sysbus.h"
 #include "sysemu/sysemu.h"
 #include "hw/timer/allwinner-a10-pit.h"
+#include "qemu/log.h"
 
 static void a10_pit_update_irq(AwA10PITState *s)
 {

+ 1 - 0
hw/timer/arm_timer.c

@@ -14,6 +14,7 @@
 #include "hw/qdev.h"
 #include "hw/ptimer.h"
 #include "qemu/main-loop.h"
+#include "qemu/log.h"
 
 /* Common timer implementation.  */
 

+ 1 - 0
hw/timer/digic-timer.c

@@ -30,6 +30,7 @@
 #include "hw/sysbus.h"
 #include "hw/ptimer.h"
 #include "qemu/main-loop.h"
+#include "qemu/log.h"
 
 #include "hw/timer/digic-timer.h"
 

+ 1 - 0
hw/timer/imx_epit.c

@@ -16,6 +16,7 @@
 #include "hw/timer/imx_epit.h"
 #include "hw/misc/imx_ccm.h"
 #include "qemu/main-loop.h"
+#include "qemu/log.h"
 
 #ifndef DEBUG_IMX_EPIT
 #define DEBUG_IMX_EPIT 0

+ 1 - 0
hw/timer/imx_gpt.c

@@ -16,6 +16,7 @@
 #include "hw/timer/imx_gpt.h"
 #include "hw/misc/imx_ccm.h"
 #include "qemu/main-loop.h"
+#include "qemu/log.h"
 
 #ifndef DEBUG_IMX_GPT
 #define DEBUG_IMX_GPT 0

+ 1 - 0
hw/timer/pl031.c

@@ -16,6 +16,7 @@
 #include "qemu/timer.h"
 #include "sysemu/sysemu.h"
 #include "qemu/cutils.h"
+#include "qemu/log.h"
 
 //#define DEBUG_PL031
 

+ 1 - 0
hw/timer/stm32f2xx_timer.c

@@ -24,6 +24,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/timer/stm32f2xx_timer.h"
+#include "qemu/log.h"
 
 #ifndef STM_TIMER_ERR_DEBUG
 #define STM_TIMER_ERR_DEBUG 0

+ 1 - 0
hw/watchdog/wdt_diag288.c

@@ -16,6 +16,7 @@
 #include "hw/sysbus.h"
 #include "qemu/timer.h"
 #include "hw/watchdog/wdt_diag288.h"
+#include "qemu/log.h"
 
 static WatchdogTimerModel model = {
     .wdt_name = TYPE_WDT_DIAG288,

+ 0 - 1
include/hw/hw.h

@@ -11,7 +11,6 @@
 #include "hw/irq.h"
 #include "block/aio.h"
 #include "migration/vmstate.h"
-#include "qemu/log.h"
 #include "qemu/module.h"
 
 typedef void QEMUResetHandler(void *opaque);

+ 1 - 0
monitor.c

@@ -71,6 +71,7 @@
 #include "trace/simple.h"
 #endif
 #include "exec/memory.h"
+#include "qemu/log.h"
 #include "qmp-commands.h"
 #include "hmp.h"
 #include "qemu/thread.h"

+ 1 - 0
target-arm/arm-powerctl.c

@@ -13,6 +13,7 @@
 #include <cpu-qom.h>
 #include "internals.h"
 #include "arm-powerctl.h"
+#include "qemu/log.h"
 
 #ifndef DEBUG_ARM_POWERCTL
 #define DEBUG_ARM_POWERCTL 0

+ 1 - 0
target-arm/kvm.c

@@ -25,6 +25,7 @@
 #include "hw/arm/arm.h"
 #include "exec/memattrs.h"
 #include "hw/boards.h"
+#include "qemu/log.h"
 
 const KVMCapabilityInfo kvm_arch_required_capabilities[] = {
     KVM_CAP_LAST_INFO

+ 1 - 0
target-arm/kvm32.c

@@ -22,6 +22,7 @@
 #include "kvm_arm.h"
 #include "internals.h"
 #include "hw/arm/arm.h"
+#include "qemu/log.h"
 
 static inline void set_feature(uint64_t *features, int feature)
 {

+ 1 - 0
vl.c

@@ -80,6 +80,7 @@ int main(int argc, char **argv)
 #include "qemu/timer.h"
 #include "sysemu/char.h"
 #include "qemu/bitmap.h"
+#include "qemu/log.h"
 #include "sysemu/blockdev.h"
 #include "hw/block/block.h"
 #include "migration/block.h"