]> 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)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 26 Sep 2025 06:59:25 +0000 (09:59 +0300)
commitce6e2f11742eab9a74b58444185a78c1d151a205
treecee7d44a99e480b17b772df8af80568548d36e44
parentadc2c224395c561bcad37958d0ab5529c287d529
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>
(cherry picked from commit b6cdd6c6050567c02a3b3cd428f85bb79d7455aa)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/sparc/insns.decode
target/sparc/translate.c