Skip to content

Commit

Permalink
hw: move interrupt controllers to hw/intc/, configure with default-co…
Browse files Browse the repository at this point in the history
…nfigs/

Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Apr 8, 2013
1 parent d2c0bd8 commit 7702e47
Show file tree
Hide file tree
Showing 35 changed files with 34 additions and 28 deletions.
4 changes: 4 additions & 0 deletions default-configs/arm-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions default-configs/i386-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions default-configs/ppc-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions default-configs/ppc64-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions default-configs/ppcemb-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions default-configs/x86_64-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 3 additions & 7 deletions hw/arm/Makefile.objs
Original file line number Diff line number Diff line change
@@ -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))

Expand Down
6 changes: 0 additions & 6 deletions hw/cris/Makefile.objs
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions hw/i386/Makefile.objs
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
18 changes: 18 additions & 0 deletions hw/intc/Makefile.objs
Original file line number Diff line number Diff line change
Expand Up @@ -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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion hw/ioapic.c → hw/intc/ioapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion hw/lm32/Makefile.objs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions hw/ppc/Makefile.objs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# IBM pSeries (sPAPR)
obj-$(CONFIG_PSERIES) += spapr_nvram.o
# PowerPC OpenPIC
obj-y += openpic.o

obj-y := $(addprefix ../,$(obj-y))

Expand Down
4 changes: 0 additions & 4 deletions hw/sh4/Makefile.objs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 1 addition & 5 deletions hw/sparc/Makefile.objs
Original file line number Diff line number Diff line change
@@ -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))

Expand Down

0 comments on commit 7702e47

Please sign in to comment.