]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/s390x: Extract s390_get_bfp_rounding_mode()
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 10 Feb 2026 21:39:01 +0000 (22:39 +0100)
committerThomas Huth <thuth@redhat.com>
Thu, 12 Feb 2026 07:43:13 +0000 (08:43 +0100)
commitf5682b9deef3d572bbe780e04857166b77870718
treea6a298d7ba0986890e500bb73b9c9a9b95bd52a9
parent5b251330e4822810543b280f39678030e58e2d5a
target/s390x: Extract s390_get_bfp_rounding_mode()

For DIVIDE TO INTEGER it will be helpful to pass final-quotient
rounding mode around explicitly rather than setting it in fpu_status
implicitly. To facilitate this, extract a function for converting the
mask to the rounding mode.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-ID: <20260210214044.1174699-3-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/tcg/fpu_helper.c