]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/pnv: Fix LPC POWER8 register sanity check
authorNicholas Piggin <npiggin@gmail.com>
Tue, 6 Aug 2024 13:13:12 +0000 (23:13 +1000)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 5 Nov 2024 15:40:58 +0000 (18:40 +0300)
commit3583e93223fe534dce511b3b5b902b76bb136968
tree5f84b9fc7b5cc4300ae19ea74811c45c9f59f1da
parentafbd6b50773b91318067bc6633dd6d6486b93edc
ppc/pnv: Fix LPC POWER8 register sanity check

POWER8 does not have the ISA IRQ -> SERIRQ routing system of later
CPUs, instead all ISA IRQs are sent to the CPU via a single PSI
interrupt. There is a sanity check in the POWER8 case to ensure the
routing bits have not been set, because that would indicate a
programming error.

Those bits were incorrectly specified because of ppc bit numbering
fun. Coverity detected this as an always-zero expression.

Cc: qemu-stable@nongnu.org
Reported-by: Cédric Le Goater <clg@redhat.com>
Resolves: Coverity CID 1558829 (partially)
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
(cherry picked from commit 84416e262ea1218026a8567ed9ea31c16d77edea)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/ppc/pnv_lpc.c