qemu-irix/hw/intc
Peter Maydell 49c80c380d nvic: Handle v8M changes in nvic_exec_prio()
Update nvic_exec_prio() to support the v8M changes:
 * BASEPRI, FAULTMASK and PRIMASK are all banked
 * AIRCR.PRIS can affect NS priorities
 * AIRCR.BFHFNMINS affects FAULTMASK behaviour

These changes mean that it's no longer possible to
definitely say that if FAULTMASK is set it overrides
PRIMASK, and if PRIMASK is set it overrides BASEPRI
(since if PRIMASK_NS is set and AIRCR.PRIS is set then
whether that 0x80 priority should take effect or the
priority in BASEPRI_S depends on the value of BASEPRI_S,
for instance). So we switch to the same approach used
by the pseudocode of working through BASEPRI, PRIMASK
and FAULTMASK and overriding the previous values if
needed.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 1505240046-11454-16-git-send-email-peter.maydell@linaro.org
2017-09-21 16:31:09 +01:00
..
Makefile.objs
allwinner-a10-pic.c
apic.c
apic_common.c
arm_gic.c ARM: KVM: Enable in-kernel timers with user space gic 2017-07-11 11:21:26 +01:00
arm_gic_common.c
arm_gic_kvm.c
arm_gicv2m.c
arm_gicv3.c
arm_gicv3_common.c
arm_gicv3_cpuif.c
arm_gicv3_dist.c
arm_gicv3_its_common.c
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
armv7m_nvic.c nvic: Handle v8M changes in nvic_exec_prio() 2017-09-21 16:31:09 +01:00
aspeed_vic.c
bcm2835_ic.c
bcm2836_control.c
etraxfs_pic.c
exynos4210_combiner.c
exynos4210_gic.c
gic_internal.h
gicv3_internal.h
grlib_irqmp.c
heathrow_pic.c
i8259.c
i8259_common.c
imx_avic.c
intc.c
ioapic.c
ioapic_common.c
lm32_pic.c
mips_gic.c
nios2_iic.c
omap_intc.c
openpic.c target-ppc: Enable open-pic timers to count and generate interrupts 2017-06-30 14:03:32 +10:00
openpic_kvm.c
pl190.c
puv3_intc.c
realview_gic.c
s390_flic.c s390x/flic: migrate ais states 2017-07-14 12:29:49 +02:00
s390_flic_kvm.c s390x/kvm: move KVM declarations and stubs to separate files 2017-08-30 18:23:26 +02:00
sh_intc.c
slavio_intctl.c
trace-events nvic: Make SHPR registers banked 2017-09-21 16:31:09 +01:00
vgic_common.h
xics.c xics: fix several error leaks 2017-09-15 10:29:48 +10:00
xics_kvm.c
xics_pnv.c
xics_spapr.c
xilinx_intc.c