]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/sparc: Fix register selection for all F*TOx and FxTO* instructions
authorMikael Szreder <git@miszr.win>
Wed, 5 Feb 2025 09:03:32 +0000 (10:03 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 19 Feb 2025 11:01:02 +0000 (14:01 +0300)
commit5afb837e3cad49d7cff5e9b46589686a053bee61
tree34fbfc502abfa2a8d59021b14362c1ce6d08f3bb
parentdffec2ddd0240758822c013b13ac9364d785735a
target/sparc: Fix register selection for all F*TOx and FxTO* instructions

A bug was introduced in commit 0bba7572d40d which causes the fdtox
and fqtox instructions to incorrectly select the destination registers.
More information and a test program can be found in issue #2802.

Cc: qemu-stable@nongnu.org
Fixes: 0bba7572d40d ("target/sparc: Perform DFPREG/QFPREG in decodetree")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2802
Signed-off-by: Mikael Szreder <git@miszr.win>
Acked-by: Artyom Tarasenko <atar4qemu@gmail.com>
[rth: Squash patches together, since the second fixes a typo in the first.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250205090333.19626-3-git@miszr.win>
(cherry picked from commit 807c3ebd1e3fc2a1be6cdfc702ccea3fa0d2d9b2)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/sparc/insns.decode