aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-02-05 16:12:12 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2013-04-08 18:13:16 +0200
commit7702e47c21e9e7c9962a25de03caa999ea4cd2ea (patch)
tree743d21340fcd4e45df99c61c875bfbf9a3eb56cb /hw
parentd2c0bd845847820e4abd99638aa2e9b90611a5bf (diff)
hw: move interrupt controllers to hw/intc/, configure with default-configs/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/arm/Makefile.objs10
-rw-r--r--hw/cris/Makefile.objs6
-rw-r--r--hw/i386/Makefile.objs3
-rw-r--r--hw/intc/Makefile.objs18
-rw-r--r--hw/intc/apic.c (renamed from hw/apic.c)0
-rw-r--r--hw/intc/apic_common.c (renamed from hw/apic_common.c)0
-rw-r--r--hw/intc/arm_gic.c (renamed from hw/arm_gic.c)0
-rw-r--r--hw/intc/arm_gic_common.c (renamed from hw/arm_gic_common.c)0
-rw-r--r--hw/intc/arm_gic_kvm.c (renamed from hw/kvm/arm_gic.c)0
-rw-r--r--hw/intc/armv7m_nvic.c (renamed from hw/armv7m_nvic.c)0
-rw-r--r--hw/intc/etraxfs_pic.c (renamed from hw/etraxfs_pic.c)0
-rw-r--r--hw/intc/exynos4210_combiner.c (renamed from hw/exynos4210_combiner.c)0
-rw-r--r--hw/intc/exynos4210_gic.c (renamed from hw/exynos4210_gic.c)0
-rw-r--r--hw/intc/grlib_irqmp.c (renamed from hw/grlib_irqmp.c)0
-rw-r--r--hw/intc/imx_avic.c (renamed from hw/imx_avic.c)0
-rw-r--r--hw/intc/ioapic.c (renamed from hw/ioapic.c)1
-rw-r--r--hw/intc/ioapic_common.c (renamed from hw/ioapic_common.c)0
-rw-r--r--hw/intc/lm32_pic.c (renamed from hw/lm32_pic.c)0
-rw-r--r--hw/intc/omap_intc.c (renamed from hw/omap_intc.c)0
-rw-r--r--hw/intc/openpic.c (renamed from hw/openpic.c)0
-rw-r--r--hw/intc/realview_gic.c (renamed from hw/realview_gic.c)0
-rw-r--r--hw/intc/sbi.c (renamed from hw/sbi.c)0
-rw-r--r--hw/intc/sh_intc.c (renamed from hw/sh_intc.c)0
-rw-r--r--hw/intc/slavio_intctl.c (renamed from hw/slavio_intctl.c)0
-rw-r--r--hw/intc/sun4c_intctl.c (renamed from hw/sun4c_intctl.c)0
-rw-r--r--hw/lm32/Makefile.objs1
-rw-r--r--hw/ppc/Makefile.objs2
-rw-r--r--hw/sh4/Makefile.objs4
-rw-r--r--hw/sparc/Makefile.objs6
29 files changed, 23 insertions, 28 deletions
diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs
index 59b5cf69cb..915073bd2c 100644
--- a/hw/arm/Makefile.objs
+++ b/hw/arm/Makefile.objs
@@ -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))
diff --git a/hw/cris/Makefile.objs b/hw/cris/Makefile.objs
index f8c85a4520..776db7c5cd 100644
--- a/hw/cris/Makefile.objs
+++ b/hw/cris/Makefile.objs
@@ -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
diff --git a/hw/i386/Makefile.objs b/hw/i386/Makefile.objs
index a531d3aec6..533d337c17 100644
--- a/hw/i386/Makefile.objs
+++ b/hw/i386/Makefile.objs
@@ -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/
diff --git a/hw/intc/Makefile.objs b/hw/intc/Makefile.objs
index 2813adb3e7..718d97ae8a 100644
--- a/hw/intc/Makefile.objs
+++ b/hw/intc/Makefile.objs
@@ -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
diff --git a/hw/apic.c b/hw/intc/apic.c
index 2d79a9ea7f..2d79a9ea7f 100644
--- a/hw/apic.c
+++ b/hw/intc/apic.c
diff --git a/hw/apic_common.c b/hw/intc/apic_common.c
index e0ae07afd5..e0ae07afd5 100644
--- a/hw/apic_common.c
+++ b/hw/intc/apic_common.c
diff --git a/hw/arm_gic.c b/hw/intc/arm_gic.c
index bcb072bbcf..bcb072bbcf 100644
--- a/hw/arm_gic.c
+++ b/hw/intc/arm_gic.c
diff --git a/hw/arm_gic_common.c b/hw/intc/arm_gic_common.c
index 71594f1f87..71594f1f87 100644
--- a/hw/arm_gic_common.c
+++ b/hw/intc/arm_gic_common.c
diff --git a/hw/kvm/arm_gic.c b/hw/intc/arm_gic_kvm.c
index 22b40b4f84..22b40b4f84 100644
--- a/hw/kvm/arm_gic.c
+++ b/hw/intc/arm_gic_kvm.c
diff --git a/hw/armv7m_nvic.c b/hw/intc/armv7m_nvic.c
index 75742601cb..75742601cb 100644
--- a/hw/armv7m_nvic.c
+++ b/hw/intc/armv7m_nvic.c
diff --git a/hw/etraxfs_pic.c b/hw/intc/etraxfs_pic.c
index 635103c001..635103c001 100644
--- a/hw/etraxfs_pic.c
+++ b/hw/intc/etraxfs_pic.c
diff --git a/hw/exynos4210_combiner.c b/hw/intc/exynos4210_combiner.c
index 6874287302..6874287302 100644
--- a/hw/exynos4210_combiner.c
+++ b/hw/intc/exynos4210_combiner.c
diff --git a/hw/exynos4210_gic.c b/hw/intc/exynos4210_gic.c
index bad6dde652..bad6dde652 100644
--- a/hw/exynos4210_gic.c
+++ b/hw/intc/exynos4210_gic.c
diff --git a/hw/grlib_irqmp.c b/hw/intc/grlib_irqmp.c
index 68dfe6a4bb..68dfe6a4bb 100644
--- a/hw/grlib_irqmp.c
+++ b/hw/intc/grlib_irqmp.c
diff --git a/hw/imx_avic.c b/hw/intc/imx_avic.c
index 4e280b6ab9..4e280b6ab9 100644
--- a/hw/imx_avic.c
+++ b/hw/intc/imx_avic.c
diff --git a/hw/ioapic.c b/hw/intc/ioapic.c
index 7089fa808d..c6f09f4331 100644
--- a/hw/ioapic.c
+++ b/hw/intc/ioapic.c
@@ -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"
diff --git a/hw/ioapic_common.c b/hw/intc/ioapic_common.c
index 42c7adc691..42c7adc691 100644
--- a/hw/ioapic_common.c
+++ b/hw/intc/ioapic_common.c
diff --git a/hw/lm32_pic.c b/hw/intc/lm32_pic.c
index b4e80c8d8c..b4e80c8d8c 100644
--- a/hw/lm32_pic.c
+++ b/hw/intc/lm32_pic.c
diff --git a/hw/omap_intc.c b/hw/intc/omap_intc.c
index 875eba4e3e..875eba4e3e 100644
--- a/hw/omap_intc.c
+++ b/hw/intc/omap_intc.c
diff --git a/hw/openpic.c b/hw/intc/openpic.c
index c78871445b..c78871445b 100644
--- a/hw/openpic.c
+++ b/hw/intc/openpic.c
diff --git a/hw/realview_gic.c b/hw/intc/realview_gic.c
index 0ec30caa06..0ec30caa06 100644
--- a/hw/realview_gic.c
+++ b/hw/intc/realview_gic.c
diff --git a/hw/sbi.c b/hw/intc/sbi.c
index 8795749de8..8795749de8 100644
--- a/hw/sbi.c
+++ b/hw/intc/sbi.c
diff --git a/hw/sh_intc.c b/hw/intc/sh_intc.c
index 050bfb63ce..050bfb63ce 100644
--- a/hw/sh_intc.c
+++ b/hw/intc/sh_intc.c
diff --git a/hw/slavio_intctl.c b/hw/intc/slavio_intctl.c
index b367752fd3..b367752fd3 100644
--- a/hw/slavio_intctl.c
+++ b/hw/intc/slavio_intctl.c
diff --git a/hw/sun4c_intctl.c b/hw/intc/sun4c_intctl.c
index 1096375670..1096375670 100644
--- a/hw/sun4c_intctl.c
+++ b/hw/intc/sun4c_intctl.c
diff --git a/hw/lm32/Makefile.objs b/hw/lm32/Makefile.objs
index bf8d152831..1e59ac5c62 100644
--- a/hw/lm32/Makefile.objs
+++ b/hw/lm32/Makefile.objs
@@ -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
diff --git a/hw/ppc/Makefile.objs b/hw/ppc/Makefile.objs
index 70342c28ec..280ed266e0 100644
--- a/hw/ppc/Makefile.objs
+++ b/hw/ppc/Makefile.objs
@@ -1,7 +1,5 @@
# IBM pSeries (sPAPR)
obj-$(CONFIG_PSERIES) += spapr_nvram.o
-# PowerPC OpenPIC
-obj-y += openpic.o
obj-y := $(addprefix ../,$(obj-y))
diff --git a/hw/sh4/Makefile.objs b/hw/sh4/Makefile.objs
index 0387b96b4b..2393702c57 100644
--- a/hw/sh4/Makefile.objs
+++ b/hw/sh4/Makefile.objs
@@ -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
diff --git a/hw/sparc/Makefile.objs b/hw/sparc/Makefile.objs
index 3de10ff08c..3246bb15e5 100644
--- a/hw/sparc/Makefile.objs
+++ b/hw/sparc/Makefile.objs
@@ -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))