hw: move interrupt controllers to hw/intc/, configure with default-configs/
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Feb 2013 15:12:12 +0000 (16:12 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Apr 2013 16:13:16 +0000 (18:13 +0200)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
35 files changed:
default-configs/arm-softmmu.mak
default-configs/i386-softmmu.mak
default-configs/ppc-softmmu.mak
default-configs/ppc64-softmmu.mak
default-configs/ppcemb-softmmu.mak
default-configs/x86_64-softmmu.mak
hw/arm/Makefile.objs
hw/cris/Makefile.objs
hw/i386/Makefile.objs
hw/intc/Makefile.objs
hw/intc/apic.c [moved from hw/apic.c with 100% similarity]
hw/intc/apic_common.c [moved from hw/apic_common.c with 100% similarity]
hw/intc/arm_gic.c [moved from hw/arm_gic.c with 100% similarity]
hw/intc/arm_gic_common.c [moved from hw/arm_gic_common.c with 100% similarity]
hw/intc/arm_gic_kvm.c [moved from hw/kvm/arm_gic.c with 100% similarity]
hw/intc/armv7m_nvic.c [moved from hw/armv7m_nvic.c with 100% similarity]
hw/intc/etraxfs_pic.c [moved from hw/etraxfs_pic.c with 100% similarity]
hw/intc/exynos4210_combiner.c [moved from hw/exynos4210_combiner.c with 100% similarity]
hw/intc/exynos4210_gic.c [moved from hw/exynos4210_gic.c with 100% similarity]
hw/intc/grlib_irqmp.c [moved from hw/grlib_irqmp.c with 100% similarity]
hw/intc/imx_avic.c [moved from hw/imx_avic.c with 100% similarity]
hw/intc/ioapic.c [moved from hw/ioapic.c with 99% similarity]
hw/intc/ioapic_common.c [moved from hw/ioapic_common.c with 100% similarity]
hw/intc/lm32_pic.c [moved from hw/lm32_pic.c with 100% similarity]
hw/intc/omap_intc.c [moved from hw/omap_intc.c with 100% similarity]
hw/intc/openpic.c [moved from hw/openpic.c with 100% similarity]
hw/intc/realview_gic.c [moved from hw/realview_gic.c with 100% similarity]
hw/intc/sbi.c [moved from hw/sbi.c with 100% similarity]
hw/intc/sh_intc.c [moved from hw/sh_intc.c with 100% similarity]
hw/intc/slavio_intctl.c [moved from hw/slavio_intctl.c with 100% similarity]
hw/intc/sun4c_intctl.c [moved from hw/sun4c_intctl.c with 100% similarity]
hw/lm32/Makefile.objs
hw/ppc/Makefile.objs
hw/sh4/Makefile.objs
hw/sparc/Makefile.objs

index 94b52da..93c7d95 100644 (file)
@@ -16,6 +16,7 @@ CONFIG_TWL92230=y
 CONFIG_TSC2005=y
 CONFIG_LM832X=y
 CONFIG_TMP105=y
+CONFIG_STELLARIS=y
 CONFIG_STELLARIS_INPUT=y
 CONFIG_STELLARIS_ENET=y
 CONFIG_SSD0303=y
@@ -33,6 +34,8 @@ CONFIG_PFLASH_CFI02=y
 CONFIG_MICRODRIVE=y
 CONFIG_USB_MUSB=y
 
+CONFIG_ARM_GIC=y
+CONFIG_ARM_GIC_KVM=$(CONFIG_KVM)
 CONFIG_ARM_TIMER=y
 CONFIG_ARM_MPTIMER=y
 CONFIG_PL011=y
@@ -62,6 +65,7 @@ CONFIG_BLIZZARD=y
 CONFIG_ONENAND=y
 CONFIG_TUSB6010=y
 CONFIG_IMX=y
+CONFIG_REALVIEW=y
 CONFIG_ZAURUS=y
 
 CONFIG_VERSATILE_PCI=y
index fa070cd..79851bd 100644 (file)
@@ -40,3 +40,5 @@ CONFIG_XEN_I386=$(CONFIG_XEN)
 CONFIG_ISA_DEBUG=y
 CONFIG_LPC_ICH9=y
 CONFIG_Q35=y
+CONFIG_APIC=y
+CONFIG_IOAPIC=y
index 36a8ed3..50034fc 100644 (file)
@@ -41,6 +41,7 @@ CONFIG_PTIMER=y
 CONFIG_I8259=y
 CONFIG_XILINX=y
 CONFIG_XILINX_ETHLITE=y
+CONFIG_OPENPIC=y
 CONFIG_E500=$(CONFIG_FDT)
 # For PReP
 CONFIG_MC146818RTC=y
index 2d5df77..6398d60 100644 (file)
@@ -41,6 +41,7 @@ CONFIG_PTIMER=y
 CONFIG_I8259=y
 CONFIG_XILINX=y
 CONFIG_XILINX_ETHLITE=y
+CONFIG_OPENPIC=y
 CONFIG_PSERIES=$(CONFIG_FDT)
 CONFIG_E500=$(CONFIG_FDT)
 # For pSeries
index ce705a9..05b50d6 100644 (file)
@@ -36,6 +36,7 @@ CONFIG_PTIMER=y
 CONFIG_I8259=y
 CONFIG_XILINX=y
 CONFIG_XILINX_ETHLITE=y
+CONFIG_OPENPIC=y
 CONFIG_E500=$(CONFIG_FDT)
 # For PReP
 CONFIG_MC146818RTC=y
index 3102c09..176f493 100644 (file)
@@ -40,3 +40,5 @@ CONFIG_XEN_I386=$(CONFIG_XEN)
 CONFIG_ISA_DEBUG=y
 CONFIG_LPC_ICH9=y
 CONFIG_Q35=y
+CONFIG_APIC=y
+CONFIG_IOAPIC=y
index 59b5cf6..915073b 100644 (file)
@@ -1,20 +1,16 @@
 obj-y += zynq_slcr.o
-obj-y += arm_gic.o arm_gic_common.o
 obj-y += a9scu.o
-obj-y += realview_gic.o arm_sysctl.o arm11mpcore.o a9mpcore.o
-obj-y += exynos4210_gic.o exynos4210_combiner.o
+obj-y += arm_sysctl.o arm11mpcore.o a9mpcore.o
 obj-y += exynos4210_pmu.o
 obj-y += a15mpcore.o
-obj-y += armv7m_nvic.o
 obj-y += pxa2xx_pcmcia.o
 obj-y += zaurus.o
-obj-y += omap_clk.o omap_gpio.o omap_intc.o
+obj-y += omap_clk.o omap_gpio.o
 obj-y += omap_gpmc.o omap_sdrc.o omap_tap.o omap_l4.o
 obj-y += cbus.o
 obj-y += mst_fpga.o
 obj-y += strongarm.o
-obj-y += imx_ccm.o imx_avic.o
-obj-$(CONFIG_KVM) += kvm/arm_gic.o
+obj-y += imx_ccm.o
 
 obj-y := $(addprefix ../,$(obj-y))
 
index f8c85a4..776db7c 100644 (file)
@@ -1,9 +1,3 @@
-# IO blocks
-obj-y += etraxfs_pic.o
-
-obj-y := $(addprefix ../,$(obj-y))
-
-# Boards
 obj-y += pic_cpu.o
 obj-y += boot.o
 obj-y += axis_dev88.o
index a531d3a..533d337 100644 (file)
@@ -1,5 +1,4 @@
-obj-y += apic_common.o apic.o
-obj-y += sga.o ioapic_common.o ioapic.o
+obj-y += sga.o
 obj-y += vmport.o
 obj-y += debugexit.o
 obj-y += kvm/
index 2813adb..718d97a 100644 (file)
@@ -3,3 +3,21 @@ common-obj-$(CONFIG_I8259) += i8259_common.o i8259.o
 common-obj-$(CONFIG_PL190) += pl190.o
 common-obj-$(CONFIG_PUV3) += puv3_intc.o
 common-obj-$(CONFIG_XILINX) += xilinx_intc.o
+common-obj-$(CONFIG_ETRAXFS) += etraxfs_pic.o
+common-obj-$(CONFIG_IMX) += imx_avic.o
+common-obj-$(CONFIG_LM32) += lm32_pic.o
+common-obj-$(CONFIG_REALVIEW) += realview_gic.o
+common-obj-$(CONFIG_SLAVIO) += sbi.o slavio_intctl.o sun4c_intctl.o
+common-obj-$(CONFIG_IOAPIC) += ioapic_common.o
+common-obj-$(CONFIG_ARM_GIC) += arm_gic_common.o
+
+obj-$(CONFIG_APIC) += apic.o apic_common.o
+obj-$(CONFIG_ARM_GIC) += arm_gic.o
+obj-$(CONFIG_ARM_GIC_KVM) += arm_gic_kvm.o
+obj-$(CONFIG_STELLARIS) += armv7m_nvic.o
+obj-$(CONFIG_EXYNOS4) += exynos4210_gic.o exynos4210_combiner.o
+obj-$(CONFIG_GRLIB) += grlib_irqmp.o
+obj-$(CONFIG_IOAPIC) += ioapic.o
+obj-$(CONFIG_OMAP) += omap_intc.o
+obj-$(CONFIG_OPENPIC) += openpic.o
+obj-$(CONFIG_SH4) += sh_intc.o
similarity index 100%
rename from hw/apic.c
rename to hw/intc/apic.c
similarity index 100%
rename from hw/apic_common.c
rename to hw/intc/apic_common.c
similarity index 100%
rename from hw/arm_gic.c
rename to hw/intc/arm_gic.c
similarity index 100%
rename from hw/arm_gic_common.c
rename to hw/intc/arm_gic_common.c
similarity index 100%
rename from hw/kvm/arm_gic.c
rename to hw/intc/arm_gic_kvm.c
similarity index 100%
rename from hw/armv7m_nvic.c
rename to hw/intc/armv7m_nvic.c
similarity index 100%
rename from hw/etraxfs_pic.c
rename to hw/intc/etraxfs_pic.c
similarity index 100%
rename from hw/exynos4210_gic.c
rename to hw/intc/exynos4210_gic.c
similarity index 100%
rename from hw/grlib_irqmp.c
rename to hw/intc/grlib_irqmp.c
similarity index 100%
rename from hw/imx_avic.c
rename to hw/intc/imx_avic.c
similarity index 99%
rename from hw/ioapic.c
rename to hw/intc/ioapic.c
index 7089fa8..c6f09f4 100644 (file)
@@ -22,7 +22,6 @@
 
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
-#include "hw/i386/apic.h"
 #include "hw/i386/ioapic.h"
 #include "hw/i386/ioapic_internal.h"
 
similarity index 100%
rename from hw/ioapic_common.c
rename to hw/intc/ioapic_common.c
similarity index 100%
rename from hw/lm32_pic.c
rename to hw/intc/lm32_pic.c
similarity index 100%
rename from hw/omap_intc.c
rename to hw/intc/omap_intc.c
similarity index 100%
rename from hw/openpic.c
rename to hw/intc/openpic.c
similarity index 100%
rename from hw/realview_gic.c
rename to hw/intc/realview_gic.c
similarity index 100%
rename from hw/sbi.c
rename to hw/intc/sbi.c
similarity index 100%
rename from hw/sh_intc.c
rename to hw/intc/sh_intc.c
similarity index 100%
rename from hw/slavio_intctl.c
rename to hw/intc/slavio_intctl.c
similarity index 100%
rename from hw/sun4c_intctl.c
rename to hw/intc/sun4c_intctl.c
index bf8d152..1e59ac5 100644 (file)
@@ -1,5 +1,4 @@
 # LM32 peripherals
-obj-y += lm32_pic.o
 obj-y += lm32_sys.o
 obj-y += milkymist-hpdmc.o
 obj-y += milkymist-pfpu.o
index 70342c2..280ed26 100644 (file)
@@ -1,7 +1,5 @@
 # IBM pSeries (sPAPR)
 obj-$(CONFIG_PSERIES) += spapr_nvram.o
-# PowerPC OpenPIC
-obj-y += openpic.o
 
 obj-y := $(addprefix ../,$(obj-y))
 
index 0387b96..2393702 100644 (file)
@@ -1,7 +1,3 @@
-obj-y += sh_intc.o
-
-obj-y := $(addprefix ../,$(obj-y))
-
 obj-y += shix.o r2d.o
 
 obj-y += sh7750.o sh7750_regnames.o
index 3de10ff..3246bb1 100644 (file)
@@ -1,9 +1,5 @@
-obj-y = slavio_intctl.o
 obj-y += slavio_misc.o
-obj-y += eccmemctl.o sbi.o sun4c_intctl.o
-
-# GRLIB
-obj-y += grlib_irqmp.o
+obj-y += eccmemctl.o
 
 obj-y := $(addprefix ../,$(obj-y))