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)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 18 Feb 2025 16:29:03 +0000 (08:29 -0800)
commit807c3ebd1e3fc2a1be6cdfc702ccea3fa0d2d9b2
tree938aef4e3f7d3cec8d01da91b746df8540782ff5
parent513823e7521a09ed7ad1e32e6454bac3b2cbf52d
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>
target/sparc/insns.decode