]> git.proxmox.com Git - mirror_qemu.git/commit
target/ppc: overhauled and moved logic of storing fpscr
authorBruno Larsen (billionai) <bruno.larsen@eldorado.org.br>
Thu, 27 May 2021 16:35:22 +0000 (13:35 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 3 Jun 2021 08:10:31 +0000 (18:10 +1000)
commitfe43ba9721f36e47e09779682c3525659c6818f0
tree0cad3444bbc0a426961d378e07e0a4c71576b88b
parent1a1c9a00f390e236eab910fdf0ab08df0be08890
target/ppc: overhauled and moved logic of storing fpscr

Followed the suggested overhaul to store_fpscr logic, and moved it to
cpu.c where it can be accessed in !TCG builds.

The overhaul was suggested because storing a value to fpscr should
never raise an exception, so we could remove all the mess that happened
with POWERPC_EXCP_FP.

We also moved fpscr_set_rounding_mode into cpu.c as it could now be moved
there, and it is needed when a value for the fpscr is being stored
directly.

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: <20210527163522.23019-1-bruno.larsen@eldorado.org.br>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/cpu.c
target/ppc/cpu.h
target/ppc/fpu_helper.c
target/ppc/gdbstub.c