qemu-e2k/hw
Peter Maydell a89ff39ee9 hw/intc/arm_gicv3_cpuif: Fix priority masking for NS BPR1
When we calculate the mask to use to get the group priority from
an interrupt priority, the way that NS BPR1 is handled differs
from how BPR0 and S BPR1 work -- a BPR1 value of 1 means
the group priority is in bits [7:1], whereas for BPR0 and S BPR1
this is indicated by a 0 BPR value.

Subtract 1 from the BPR value before creating the mask if
we're using the NS BPR value, for both hardware and virtual
interrupts, as the GICv3 pseudocode does, and fix the comments
accordingly.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 1493226792-3237-4-git-send-email-peter.maydell@linaro.org
2017-06-02 11:51:47 +01:00
..
9pfs 9pfs: local: metadata file for the VirtFS root 2017-05-25 10:30:14 +02:00
acpi shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
adc
alpha memory: tune last param of iommu_ops.translate() 2017-05-25 21:25:27 +03:00
arm shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
audio audio: Rename hw/audio/audio.h to hw/audio/soundhw.h 2017-05-19 10:48:54 +02:00
block nvme: Add support for Controller Memory Buffers 2017-05-26 16:48:21 +02:00
bt
char
core load_uboot_image: don't assume a full header read 2017-06-02 11:51:46 +01:00
cpu
cris
display
dma memory: tune last param of iommu_ops.translate() 2017-05-25 21:25:27 +03:00
gpio
i2c
i386 pci, virtio, vhost: fixes 2017-05-30 14:15:04 +01:00
ide
input shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
intc hw/intc/arm_gicv3_cpuif: Fix priority masking for NS BPR1 2017-06-02 11:51:47 +01:00
ipack
ipmi shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
isa shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
lm32
m68k
mem
microblaze
mips shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
misc shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
moxie
net virtio_net: Bypass backends for MTU feature negotiation 2017-05-25 21:25:28 +03:00
nios2
nvram
openrisc
pci
pci-bridge
pci-host pci, virtio, vhost: fixes 2017-05-30 14:15:04 +01:00
pcmcia
ppc pci, virtio, vhost: fixes 2017-05-30 14:15:04 +01:00
s390x pci, virtio, vhost: fixes 2017-05-30 14:15:04 +01:00
scsi
sd
sh4 shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
smbios
sparc
sparc64
ssi
timer shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
tpm
tricore
unicore32
usb ehci: fix frame timer invocation. 2017-05-29 14:19:16 +02:00
vfio pci, virtio, vhost: fixes 2017-05-30 14:15:04 +01:00
virtio vhost-user: pass message as a pointer to process_message_reply() 2017-05-25 21:25:28 +03:00
watchdog shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
xen
xenpv shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
xtensa shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
Makefile.objs