qemu-e2k/hw/intc
Peter Maydell 22a9c26af6 nvic: Don't apply group priority mask to negative priorities
In several places we were unconditionally applying the
nvic_gprio_mask() to a priority value. This is incorrect
if the priority is one of the fixed negative priority
values (for NMI and HardFault), so don't do it.

This bug would have caused both NMI and HardFault to be
considered as the same priority and so NMI wouldn't
correctly preempt HardFault.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 1505137930-13255-5-git-send-email-peter.maydell@linaro.org
2017-09-14 18:43:17 +01:00
..
allwinner-a10-pic.c
apic_common.c apic-common: make "id" property a uint32 2017-06-20 14:31:32 +02:00
apic.c
arm_gic_common.c
arm_gic_kvm.c kvm-all: Pass an error object to kvm_device_access 2017-06-13 14:57:00 +01:00
arm_gic.c ARM: KVM: Enable in-kernel timers with user space gic 2017-07-11 11:21:26 +01:00
arm_gicv2m.c
arm_gicv3_common.c arm: use get_uint() for "mp-affinity" property 2017-06-20 14:31:33 +02:00
arm_gicv3_cpuif.c
arm_gicv3_dist.c
arm_gicv3_its_common.c hw/intc/arm_gicv3_its: Allow save/restore 2017-06-13 14:57:01 +01:00
arm_gicv3_its_kvm.c gicv3: Convert to DEFINE_PROP_LINK 2017-09-07 13:54:51 +01:00
arm_gicv3_kvm.c arm_gicv3_kvm: Fix compile warning 2017-09-04 17:13:53 +01:00
arm_gicv3_redist.c
arm_gicv3.c
armv7m_nvic.c nvic: Don't apply group priority mask to negative priorities 2017-09-14 18:43:17 +01:00
aspeed_vic.c
bcm2835_ic.c
bcm2836_control.c
etraxfs_pic.c
exynos4210_combiner.c
exynos4210_gic.c hw/intc/exynos4210_gic: Constify array of combiner interrupts 2017-06-13 14:56:58 +01:00
gic_internal.h
gicv3_internal.h
grlib_irqmp.c
heathrow_pic.c
i8259_common.c
i8259.c
imx_avic.c
intc.c
ioapic_common.c
ioapic.c
lm32_pic.c
Makefile.objs
mips_gic.c
nios2_iic.c
omap_intc.c
openpic_kvm.c
openpic.c target-ppc: Enable open-pic timers to count and generate interrupts 2017-06-30 14:03:32 +10:00
pl190.c
puv3_intc.c
realview_gic.c
s390_flic_kvm.c s390x/kvm: move KVM declarations and stubs to separate files 2017-08-30 18:23:26 +02:00
s390_flic.c s390x/flic: migrate ais states 2017-07-14 12:29:49 +02:00
sh_intc.c
slavio_intctl.c
trace-events trace-events: fix code style: print 0x before hex numbers 2017-08-01 12:13:07 +01:00
vgic_common.h
xics_kvm.c xics: drop ICPStateClass::cpu_setup() handler 2017-06-09 12:17:59 +10:00
xics_pnv.c xics: pass appropriate types to realize() handlers. 2017-06-09 12:12:34 +10:00
xics_spapr.c
xics.c xics: directly register ICPState objects to vmstate 2017-06-30 14:03:31 +10:00
xilinx_intc.c