On 5/18/21 10:05 AM, Bruno Larsen (billionai) wrote:
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 suggesting 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.hender...@linaro.org>
Signed-off-by: Bruno Larsen (billionai)<bruno.lar...@eldorado.org.br>
---
  target/ppc/cpu.c        |  43 ++++++++
  target/ppc/cpu.h        |  12 +-
  target/ppc/fpu_helper.c | 238 +++-------------------------------------
  target/ppc/gdbstub.c    |   6 +-
  4 files changed, 65 insertions(+), 234 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to