]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/sparc: use signed denominator in sdiv helper
authorClément Chigot <chigot@adacore.com>
Thu, 6 Jun 2024 14:43:31 +0000 (16:43 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 20 Jun 2024 12:22:47 +0000 (15:22 +0300)
commitc8fdbb5babf0cb201c88d55e7e543352352f26e7
tree3cb4c6f0465717c8ba0f7cb1239007b90c63f43e
parent0556f5fc1356374b652dda5cd9deb85dfb08bd33
target/sparc: use signed denominator in sdiv helper

The result has to be done with the signed denominator (b32) instead of
the unsigned value passed in argument (b).

Cc: qemu-stable@nongnu.org
Fixes: 1326010322d6 ("target/sparc: Remove CC_OP_DIV")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2319
Signed-off-by: Clément Chigot <chigot@adacore.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240606144331.698361-1-chigot@adacore.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
(cherry picked from commit 6b4965373e561b77f91cfbdf41353635c9661358)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/sparc/helper.c