qemu-patch-raspberry4/hw/intc
Peter Maydell 7ecdaa4a96 armv7m: Fix condition check for taking exceptions
The M profile condition for when we can take a pending exception or
interrupt is not the same as that for A/R profile.  The code
originally copied from the A/R profile version of the
cpu_exec_interrupt function only worked by chance for the
very simple case of exceptions being masked by PRIMASK.
Replace it with a call to a function in the NVIC code that
correctly compares the priority of the pending exception
against the current execution priority of the CPU.

[Michael Davidsaver's patchset had a patch to do something
similar but the implementation ended up being a rewrite.]

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
2017-02-28 12:08:17 +00:00
..
allwinner-a10-pic.c
apic.c
apic_common.c apic: reset apic_delivered global variable on machine reset 2017-02-16 14:06:55 +01:00
arm_gic.c
arm_gic_common.c hw/intc/arm_gic: Add external IRQ lines for VIRQ and VFIQ 2017-01-20 11:15:09 +00:00
arm_gic_kvm.c migration: disallow migrate_add_blocker during migration 2017-01-24 18:00:30 +00:00
arm_gicv2m.c
arm_gicv3.c hw/intc/arm_gicv3: Don't signal Pending+Active interrupts to CPU 2016-12-27 14:59:25 +00:00
arm_gicv3_common.c hw/intc/gicv3: Add data fields for virtualization support 2017-01-20 11:15:09 +00:00
arm_gicv3_cpuif.c tcg: drop global lock during TCG code execution 2017-02-24 10:32:45 +00:00
arm_gicv3_dist.c
arm_gicv3_its_common.c
arm_gicv3_its_kvm.c migration: disallow migrate_add_blocker during migration 2017-01-24 18:00:30 +00:00
arm_gicv3_kvm.c migration: disallow migrate_add_blocker during migration 2017-01-24 18:00:30 +00:00
arm_gicv3_redist.c
armv7m_nvic.c armv7m: Fix condition check for taking exceptions 2017-02-28 12:08:17 +00:00
aspeed_vic.c
bcm2835_ic.c
bcm2836_control.c
etraxfs_pic.c
exynos4210_combiner.c
exynos4210_gic.c migration: consolidate VMStateField.start 2017-02-13 17:27:13 +00:00
gic_internal.h
gicv3_internal.h hw/intc/gicv3: Add defines for ICH system register fields 2017-01-20 11:15:09 +00:00
grlib_irqmp.c
heathrow_pic.c
i8259.c
i8259_common.c
imx_avic.c
intc.c
ioapic.c ioapic: fix error report value of def version 2017-02-16 14:06:55 +01:00
ioapic_common.c x86: ioapic: dump version for "info ioapic" 2017-01-16 17:52:35 +01:00
lm32_pic.c
Makefile.objs nios2: Add IIC interrupt controller emulation 2017-01-24 13:10:35 -08:00
mips_gic.c hw/mips_gic: Update pin state on mask changes 2017-02-21 22:24:58 +00:00
nios2_iic.c nios2: Add IIC interrupt controller emulation 2017-01-24 13:10:35 -08:00
omap_intc.c
openpic.c
openpic_kvm.c
pl190.c
puv3_intc.c
realview_gic.c
s390_flic.c s390x: add property adapter_routes_max_batch 2017-02-24 10:15:18 +01:00
s390_flic_kvm.c s390x/flic: fail migration on source already 2017-02-24 10:15:18 +01:00
sh_intc.c
slavio_intctl.c
trace-events armv7m: Rewrite NVIC to not use any GIC code 2017-02-28 12:08:17 +00:00
vgic_common.h
xics.c
xics_kvm.c
xics_spapr.c
xilinx_intc.c