]> git.proxmox.com Git - mirror_qemu.git/commit
target/ppc: reduce usage of fpscr_set_rounding_mode
authorBruno Larsen (billionai) <bruno.larsen@eldorado.org.br>
Fri, 21 May 2021 20:17:53 +0000 (17:17 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 3 Jun 2021 03:22:06 +0000 (13:22 +1000)
commit63d06e90e65d5f119039044e986a81007954a466
tree8019a3ca51f50c306eb96052fc68fe9d873fc944
parenta3f5c315396b86468487f303a044b26801015090
target/ppc: reduce usage of fpscr_set_rounding_mode

It is preferable to store the current rounding mode and retore from that
than recalculating from fpscr, so we changed the behavior of do_fri and
VSX_ROUND to do it like that.

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Bruno Larsen (billionai) <bruno.larsen@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210521201759.85475-4-bruno.larsen@eldorado.org.br>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/fpu_helper.c