target/m68k: Map FPU exceptions to FPSR register
commit5888357942da1fd5a50efb6e4a6af8b1a27a5af8
authorKeith Packard <keithp@keithp.com>
Thu, 3 Aug 2023 03:52:31 +0000 (2 20:52 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 9 Apr 2024 17:43:31 +0000 (9 07:43 -1000)
tree364d0b0d72af5ceab93d52a9c3a8179252a3ff3b
parentb754cb2dcde26a7bc8a9d17bb6900a0ac0dd38e2
target/m68k: Map FPU exceptions to FPSR register

Add helpers for reading/writing the 68881 FPSR register so that
changes in floating point exception state can be seen by the
application.

Call these helpers in pre_load/post_load hooks to synchronize
exception state.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230803035231.429697-1-keithp@keithp.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/m68k/cpu.c
target/m68k/cpu.h
target/m68k/fpu_helper.c
target/m68k/helper.c
target/m68k/helper.h
target/m68k/translate.c