]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/sparc: Loosen decode of STBAR for v8
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 5 Sep 2025 04:59:43 +0000 (06:59 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 23 Sep 2025 23:50:57 +0000 (16:50 -0700)
commitb6cdd6c6050567c02a3b3cd428f85bb79d7455aa
tree2e0cd55e19f64080ccd57f4d1790e14de6ab4533
parentb7cd0a1821adf9906c5edb248394bb2a95482656
target/sparc: Loosen decode of STBAR for v8

Solaris 8 appears to have a bug whereby it executes v9 MEMBAR
instructions when booting a freshly installed image. According
to the SPARC v8 architecture manual, whilst bits 13 and bits 12-0
of the "Read State Register Instructions" are notionally zero,
they are marked as unused (i.e. ignored).

Fixes: af25071c1d ("target/sparc: Move RDASR, STBAR, MEMBAR to decodetree")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3097
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
target/sparc/insns.decode
target/sparc/translate.c