Fix location of some include files
PATCH 1/1 Fix location of some include files
The recent rearrangement of include files had some minor errors:
devices.h is not ARM specific and should not be in arm/ arm.h should be in arm/
Move these two headers to correct this.
---
Curiously, both include files are exactly the same length...
hw/alpha/typhoon.c | 2 +- hw/arm/armv7m.c | 2 +- hw/arm/boot.c | 2 +- hw/arm/collie.c | 4 +- hw/arm/exynos4210.c | 2 +- hw/arm/exynos4_boards.c | 2 +- hw/arm/gumstix.c | 2 +- hw/arm/highbank.c | 4 +- hw/arm/integratorcp.c | 4 +- hw/arm/kzm.c | 4 +- hw/arm/mainstone.c | 4 +- hw/arm/musicpal.c | 4 +- hw/arm/nseries.c | 4 +- hw/arm/omap1.c | 2 +- hw/arm/omap2.c | 2 +- hw/arm/omap_sx1.c | 2 +- hw/arm/palm.c | 4 +- hw/arm/pic_cpu.c | 2 +- hw/arm/realview.c | 4 +- hw/arm/spitz.c | 4 +- hw/arm/stellaris.c | 4 +- hw/arm/strongarm.c | 2 +- hw/arm/tosa.c | 4 +- hw/arm/versatilepb.c | 4 +- hw/arm/vexpress.c | 4 +- hw/arm/xilinx_zynq.c | 2 +- hw/arm/z2.c | 4 +- hw/block/m25p80.c | 2 +- hw/display/blizzard.c | 2 +- hw/display/sm501.c | 2 +- hw/display/tc6393xb.c | 2 +- hw/input/stellaris_input.c | 2 +- hw/input/tsc2005.c | 2 +- hw/input/tsc210x.c | 2 +- hw/intc/armv7m_nvic.c | 2 +- hw/lm32/lm32_boards.c | 2 +- hw/lm32/milkymist.c | 2 +- hw/microblaze/petalogix_ml605_mmu.c | 2 +- hw/microblaze/petalogix_s3adsp1800_mmu.c | 2 +- hw/misc/cbus.c | 2 +- hw/net/lan9118.c | 2 +- hw/net/smc91c111.c | 2 +- hw/ppc/virtex_ml507.c | 2 +- hw/sh4/r2d.c | 2 +- hw/timer/tusb6010.c | 2 +- include/hw/arm.h | 70 ------------------------------ include/hw/arm/arm.h | 70 ++++++++++++++++++++++++++++++ include/hw/arm/devices.h | 70 ------------------------------ include/hw/devices.h | 70 ++++++++++++++++++++++++++++++ target-arm/arm-semi.c | 2 +- target-arm/kvm.c | 2 +- 51 files changed, 202 insertions(+), 202 deletions(-) delete mode 100644 include/hw/arm.h create mode 100644 include/hw/arm/arm.h delete mode 100644 include/hw/arm/devices.h create mode 100644 include/hw/devices.h
hw/alpha/typhoon.c +1 -1
@@ -9,7 +9,7 @@#include "cpu.h" #include "exec/exec-all.h" #include "hw/hw.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "sysemu/sysemu.h" #include "alpha_sys.h" #include "exec/address-spaces.h"
hw/arm/armv7m.c +1 -1
@@ -8,7 +8,7 @@*/ #include "hw/sysbus.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/loader.h" #include "elf.h"
hw/arm/boot.c +1 -1
@@ -9,7 +9,7 @@#include "config.h" #include "hw/hw.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "sysemu/sysemu.h" #include "hw/boards.h" #include "hw/loader.h"
hw/arm/collie.c +2 -2
@@ -11,9 +11,9 @@#include "hw/hw.h" #include "hw/sysbus.h" #include "hw/boards.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "strongarm.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/block/flash.h" #include "sysemu/blockdev.h" #include "exec/address-spaces.h"
hw/arm/exynos4210.c +1 -1
@@ -24,7 +24,7 @@#include "hw/boards.h" #include "sysemu/sysemu.h" #include "hw/sysbus.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/loader.h" #include "hw/arm/exynos4210.h" #include "hw/usb/hcd-ehci.h"
hw/arm/exynos4_boards.c +1 -1
@@ -24,7 +24,7 @@#include "sysemu/sysemu.h" #include "hw/sysbus.h" #include "net/net.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "exec/address-spaces.h" #include "hw/arm/exynos4210.h" #include "hw/boards.h"
hw/arm/gumstix.c +1 -1
@@ -38,7 +38,7 @@#include "hw/arm/pxa.h" #include "net/net.h" #include "hw/block/flash.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" #include "sysemu/blockdev.h" #include "exec/address-spaces.h"
hw/arm/highbank.c +2 -2
@@ -18,8 +18,8 @@*/ #include "hw/sysbus.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "hw/loader.h" #include "net/net.h" #include "sysemu/sysemu.h"
hw/arm/integratorcp.c +2 -2
@@ -8,9 +8,9 @@*/ #include "hw/sysbus.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "net/net.h" #include "exec/address-spaces.h" #include "sysemu/sysemu.h"
hw/arm/kzm.c +2 -2
@@ -16,8 +16,8 @@#include "hw/sysbus.h" #include "exec/address-spaces.h" #include "hw/hw.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "net/net.h" #include "sysemu/sysemu.h" #include "hw/boards.h"
hw/arm/mainstone.c +2 -2
@@ -13,9 +13,9 @@*/ #include "hw/hw.h" #include "hw/arm/pxa.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "net/net.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" #include "hw/block/flash.h" #include "sysemu/blockdev.h"
hw/arm/musicpal.c +2 -2
@@ -10,8 +10,8 @@*/ #include "hw/sysbus.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "net/net.h" #include "sysemu/sysemu.h" #include "hw/boards.h"
hw/arm/nseries.c +2 -2
@@ -21,12 +21,12 @@#include "qemu-common.h" #include "sysemu/sysemu.h" #include "hw/arm/omap.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/irq.h" #include "ui/console.h" #include "hw/boards.h" #include "hw/i2c/i2c.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/block/flash.h" #include "hw/hw.h" #include "hw/bt.h"
hw/arm/omap1.c +1 -1
@@ -17,7 +17,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ #include "hw/hw.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/arm/omap.h" #include "sysemu/sysemu.h" #include "hw/arm/soc_dma.h"
hw/arm/omap2.c +1 -1
@@ -20,7 +20,7 @@#include "sysemu/blockdev.h" #include "hw/hw.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/arm/omap.h" #include "sysemu/sysemu.h" #include "qemu/timer.h"
hw/arm/omap_sx1.c +1 -1
@@ -29,7 +29,7 @@#include "ui/console.h" #include "hw/arm/omap.h" #include "hw/boards.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/block/flash.h" #include "sysemu/blockdev.h" #include "exec/address-spaces.h"
hw/arm/palm.c +2 -2
@@ -22,8 +22,8 @@#include "ui/console.h" #include "hw/arm/omap.h" #include "hw/boards.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "hw/loader.h" #include "exec/address-spaces.h"
hw/arm/pic_cpu.c +1 -1
@@ -8,7 +8,7 @@*/ #include "hw/hw.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "sysemu/kvm.h" /* Input 0 is IRQ and input 1 is FIQ. */
hw/arm/realview.c +2 -2
@@ -8,9 +8,9 @@*/ #include "hw/sysbus.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/arm/primecell.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/pci/pci.h" #include "net/net.h" #include "sysemu/sysemu.h"
hw/arm/spitz.c +2 -2
@@ -12,14 +12,14 @@#include "hw/hw.h" #include "hw/arm/pxa.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "sysemu/sysemu.h" #include "hw/pcmcia.h" #include "hw/i2c/i2c.h" #include "hw/ssi.h" #include "hw/block/flash.h" #include "qemu/timer.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/arm/sharpsl.h" #include "ui/console.h" #include "block/block.h"
hw/arm/stellaris.c +2 -2
@@ -9,8 +9,8 @@#include "hw/sysbus.h" #include "hw/ssi.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "qemu/timer.h" #include "hw/i2c/i2c.h" #include "net/net.h"
hw/arm/strongarm.c +1 -1
@@ -29,7 +29,7 @@#include "hw/sysbus.h" #include "strongarm.h" #include "qemu/error-report.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "char/char.h" #include "sysemu/sysemu.h" #include "hw/ssi.h"
hw/arm/tosa.c +2 -2
@@ -13,8 +13,8 @@#include "hw/hw.h" #include "hw/arm/pxa.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "hw/arm/sharpsl.h" #include "hw/pcmcia.h" #include "block/block.h"
hw/arm/versatilepb.c +2 -2
@@ -8,8 +8,8 @@*/ #include "hw/sysbus.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "net/net.h" #include "sysemu/sysemu.h" #include "hw/pci/pci.h"
hw/arm/vexpress.c +2 -2
@@ -22,9 +22,9 @@*/ #include "hw/sysbus.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "hw/arm/primecell.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "net/net.h" #include "sysemu/sysemu.h" #include "hw/boards.h"
hw/arm/xilinx_zynq.c +1 -1
@@ -16,7 +16,7 @@*/ #include "hw/sysbus.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "net/net.h" #include "exec/address-spaces.h" #include "sysemu/sysemu.h"
hw/arm/z2.c +2 -2
@@ -13,8 +13,8 @@#include "hw/hw.h" #include "hw/arm/pxa.h" -#include "hw/arm.h" -#include "hw/arm/devices.h" +#include "hw/arm/arm.h" +#include "hw/devices.h" #include "hw/i2c/i2c.h" #include "hw/ssi.h" #include "hw/boards.h"
hw/block/m25p80.c +1 -1
@@ -24,7 +24,7 @@#include "hw/hw.h" #include "sysemu/blockdev.h" #include "hw/ssi.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #ifdef M25P80_ERR_DEBUG #define DB_PRINT (...) do { \
hw/display/blizzard.c +1 -1
@@ -20,7 +20,7 @@#include "qemu-common.h" #include "ui/console.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "vga_int.h" #include "ui/pixel_ops.h"
hw/display/sm501.c +1 -1
@@ -26,7 +26,7 @@#include "hw/hw.h" #include "hw/char/serial.h" #include "ui/console.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/sysbus.h" #include "hw/qdev-addr.h" #include "qemu/range.h"
hw/display/tc6393xb.c +1 -1
@@ -11,7 +11,7 @@* GNU GPL, version 2 or (at your option) any later version. */ #include "hw/hw.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/block/flash.h" #include "ui/console.h" #include "ui/pixel_ops.h"
hw/input/stellaris_input.c +1 -1
@@ -7,7 +7,7 @@* This code is licensed under the GPL. */ #include "hw/hw.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "ui/console.h" typedef struct {
hw/input/tsc2005.c +1 -1
@@ -21,7 +21,7 @@#include "hw/hw.h" #include "qemu/timer.h" #include "ui/console.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #define TSC_CUT_RESOLUTION (value, p) ((value) >> (16 - (p ? 12 : 10)))
hw/input/tsc210x.c +1 -1
@@ -24,7 +24,7 @@#include "qemu/timer.h" #include "ui/console.h" #include "hw/arm/omap.h" /* For I2SCodec and uWireSlave */ -#include "hw/arm/devices.h" +#include "hw/devices.h" #define TSC_DATA_REGISTERS_PAGE 0x0#define TSC_CONTROL_REGISTERS_PAGE 0x1
hw/intc/armv7m_nvic.c +1 -1
@@ -12,7 +12,7 @@#include "hw/sysbus.h" #include "qemu/timer.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #include "exec/address-spaces.h" #include "gic_internal.h"
hw/lm32/lm32_boards.c +1 -1
@@ -20,7 +20,7 @@#include "hw/sysbus.h" #include "hw/hw.h" #include "hw/block/flash.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" #include "hw/loader.h" #include "sysemu/blockdev.h"
hw/lm32/milkymist.c +1 -1
@@ -21,7 +21,7 @@#include "hw/hw.h" #include "hw/block/flash.h" #include "sysemu/sysemu.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" #include "hw/loader.h" #include "elf.h"
hw/microblaze/petalogix_ml605_mmu.c +1 -1
@@ -30,7 +30,7 @@#include "net/net.h" #include "hw/block/flash.h" #include "sysemu/sysemu.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" #include "hw/xilinx.h" #include "sysemu/blockdev.h"
hw/microblaze/petalogix_s3adsp1800_mmu.c +1 -1
@@ -28,7 +28,7 @@#include "net/net.h" #include "hw/block/flash.h" #include "sysemu/sysemu.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" #include "hw/xilinx.h" #include "sysemu/blockdev.h"
hw/misc/cbus.c +1 -1
@@ -22,7 +22,7 @@#include "qemu-common.h" #include "hw/irq.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "sysemu/sysemu.h" //#define DEBUG
hw/net/lan9118.c +1 -1
@@ -12,7 +12,7 @@#include "hw/sysbus.h" #include "net/net.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "sysemu/sysemu.h" #include "hw/ptimer.h" /* For crc32 */
hw/net/smc91c111.c +1 -1
@@ -9,7 +9,7 @@#include "hw/sysbus.h" #include "net/net.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" /* For crc32 */ #include <zlib.h>
hw/ppc/virtex_ml507.c +1 -1
@@ -27,7 +27,7 @@#include "hw/char/serial.h" #include "hw/block/flash.h" #include "sysemu/sysemu.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/boards.h" #include "sysemu/device_tree.h" #include "hw/loader.h"
hw/sh4/r2d.c +1 -1
@@ -26,7 +26,7 @@#include "hw/sysbus.h" #include "hw/hw.h" #include "hw/sh4/sh.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "sysemu/sysemu.h" #include "hw/boards.h" #include "hw/pci/pci.h"
hw/timer/tusb6010.c +1 -1
@@ -23,7 +23,7 @@#include "hw/usb.h" #include "hw/arm/omap.h" #include "hw/irq.h" -#include "hw/arm/devices.h" +#include "hw/devices.h" #include "hw/sysbus.h" typedef struct TUSBState {
include/hw/arm.h deleted +0 -70
70 lines not on this page · raw message
include/hw/arm/arm.h new file +70 -0
70 lines not on this page · raw message
include/hw/arm/devices.h deleted +0 -70
70 lines not on this page · raw message
include/hw/devices.h new file +70 -0
70 lines not on this page · raw message
target-arm/arm-semi.c +1 -1
@@ -34,7 +34,7 @@#else #include "qemu-common.h" #include "exec/gdbstub.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" #endif #define TARGET_SYS_OPEN 0x01
target-arm/kvm.c +1 -1
@@ -21,7 +21,7 @@#include "sysemu/kvm.h" #include "kvm_arm.h" #include "cpu.h" -#include "hw/arm.h" +#include "hw/arm/arm.h" const KVMCapabilityInfo kvm_arch_required_capabilities[] = {KVM_CAP_LAST_INFO
Signature · 1 line
1.7.9.5
Il 09/04/2013 16:26, Peter Maydell ha scritto:
Quoted 9 lines
The recent rearrangement of include files had some minor errors:
devices.his not ARM specific and should not be in arm/arm.hshould be in arm/Move these two headers to correct this.
Signed-off-by Peter Maydell <[email protected]>---
Curiously, both include files are exactly the same length...
Thanks, I had the same patch---sorry for not making it clear I was going to do it.
I'll submit the final piece later this week, it fixes up a few other misplacements (not in hw/, and not all introduced by me) that mst noticed.
Paolo
Quoted 11 lines · Paolo Bonzini
Il 09/04/2013 16:26, Peter Maydell ha scritto:
Quoted 9 lines
The recent rearrangement of include files had some minor errors:
devices.his not ARM specific and should not be in arm/arm.hshould be in arm/Move these two headers to correct this.
Signed-off-by Peter Maydell <[email protected]>---
Curiously, both include files are exactly the same length...
Quoted 6 lines
Thanks, I had the same patch---sorry for not making it clear I was going to do it.
I'll submit the final piece later this week, it fixes up a few other misplacements (not in hw/, and not all introduced by me) that mst noticed.
So do you want to roll up Peter's changes into your tree then or should I apply this now?
Regards,
Anthony Liguori
Quoted 2 lines
Paolo
Il 09/04/2013 17:17, Anthony Liguori ha scritto:
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Thanks, I had the same patch---sorry for not making it clear I was going to do it.
I'll submit the final piece later this week, it fixes up a few other misplacements (not in hw/, and not all introduced by me) that mst noticed.
So do you want to roll up Peter's changes into your tree then or should I apply this now?
As you and Peter prefer. I think Peter prefers now...
Paolo
Quoted 11 lines · Paolo Bonzini
Il 09/04/2013 17:17, Anthony Liguori ha scritto:
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Thanks, I had the same patch---sorry for not making it clear I was going to do it.
I'll submit the final piece later this week, it fixes up a few other misplacements (not in hw/, and not all introduced by me) that mst noticed.
So do you want to roll up Peter's changes into your tree then or should I apply this now?
As you and Peter prefer. I think Peter prefers now...
Well, it isn't actively breaking anything, so I don't have a huge preference, except that applying patches sooner rather than later is generally better :-)
-- PMM