]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc: Fix facility interrupt checks for VSX
authorNicholas Piggin <npiggin@gmail.com>
Thu, 20 Mar 2025 11:39:59 +0000 (21:39 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Fri, 21 Mar 2025 03:54:35 +0000 (13:54 +1000)
commit8defe9da08135d03e054f20cb8fea4389be96e18
tree802b3a6a0ba7da37099c99a94bfba2c57562e199
parent1490d0bcdfcb78b4503cae42353d3dd50f4e9d96
target/ppc: Fix facility interrupt checks for VSX

Facility interrupt checks in general should come after the ISA version
check, because the facility interrupt and facility type themselves are
ISA dependent and should not appear on CPUs where the instruction does
not exist at all.

This resolves a QEMU crash booting NetBSD/macppc due to

  qemu: fatal: Raised an exception without defined vector 94

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2741
Cc: Chinmay Rath <rathc@linux.ibm.com>
Cc: qemu-stable@nongnu.org
Debugged-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Fixes: aa0f34ec3fc7 ("target/ppc: implement vrlq")
Fixes: 7419dc5b2b5b ("target/ppc: Move VSX vector storage access insns to decodetree.")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/translate/vmx-impl.c.inc
target/ppc/translate/vsx-impl.c.inc