]> 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)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 24 Mar 2025 04:57:27 +0000 (07:57 +0300)
commit6726d4874bde0e0d7867912d7771231407d1e070
tree87aca4c799ed5bbbf25f785633b79bd26ab07ce6
parent64e16e388648948758c7dca533be541131a0e64b
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>
(cherry picked from commit 8defe9da08135d03e054f20cb8fea4389be96e18)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/ppc/translate/vmx-impl.c.inc
target/ppc/translate/vsx-impl.c.inc