qemu-irix/hw/intc
Peter Maydell 8ff41f3995 hw/intc/arm_gic_common: Configure IRQs as NS if doing direct NS kernel boot
If we directly boot a kernel in NonSecure on a system where the GIC
supports the security extensions then we must cause the GIC to
configure its interrupts into group 1 (NonSecure) rather than the
usual group 0, and with their initial priority set to the highest
NonSecure priority rather than the usual highest Secure priority.
Otherwise the guest kernel will be unable to use any interrupts.

Implement this behaviour, controlled by a flag which we set if
appropriate when the ARM bootloader code calls our ARMLinuxBootIf
interface callback.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-id: 1441383782-24378-4-git-send-email-peter.maydell@linaro.org
2015-09-08 17:38:43 +01:00
..
Makefile.objs
allwinner-a10-pic.c
apic.c
apic_common.c
arm_gic.c hw/intc/arm_gic: Actually set the active bits for active interrupts 2015-09-08 17:38:43 +01:00
arm_gic_common.c hw/intc/arm_gic_common: Configure IRQs as NS if doing direct NS kernel boot 2015-09-08 17:38:43 +01:00
arm_gic_kvm.c hw/arm/gic: Kill code duplication 2015-08-13 11:26:21 +01:00
arm_gicv2m.c
armv7m_nvic.c armv7m_nvic: Implement ICSR without using internal GIC state 2015-09-08 17:38:42 +01:00
etraxfs_pic.c
exynos4210_combiner.c
exynos4210_gic.c
gic_internal.h
grlib_irqmp.c
heathrow_pic.c
i8259.c
i8259_common.c
imx_avic.c i.MX: Fix Coding style for AVIC emulator. 2015-08-13 11:26:20 +01:00
ioapic.c
ioapic_common.c
lm32_pic.c
omap_intc.c
openpic.c
openpic_kvm.c
pl190.c
puv3_intc.c
realview_gic.c
s390_flic.c
s390_flic_kvm.c s390x/kvm: make setting of in-kernel irq routes more efficient 2015-09-07 16:10:43 +02:00
sh_intc.c
slavio_intctl.c
xics.c spapr: Merge sPAPREnvironment into sPAPRMachineState 2015-07-07 17:44:50 +02:00
xics_kvm.c xics_kvm: Don't enable KVM_CAP_IRQ_XICS if already enabled 2015-07-07 17:44:52 +02:00
xilinx_intc.c