qemu-e2k/target/m68k
Mark Cave-Ayland 1a282f60a9 target/m68k: fix FPSR quotient byte for frem instruction
The FPSR quotient byte should be set to the value of the quotient and not the
result. Manually calculate the quotient in the frem helper in round to nearest
even mode (note this is different from the quotient calculated internally for
fmod), and use it to set the quotient byte accordingly.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1314
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230114232959.118224-5-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2023-01-16 09:47:31 +01:00
..
cpu-param.h
cpu-qom.h target/m68k: Convert to 3-phase reset 2022-12-16 15:58:15 +00:00
cpu.c target/m68k: Convert to 3-phase reset 2022-12-16 15:58:15 +00:00
cpu.h
fpu_helper.c target/m68k: fix FPSR quotient byte for frem instruction 2023-01-16 09:47:31 +01:00
gdbstub.c
helper.c
helper.h
Kconfig
m68k-semi.c
meson.build
monitor.c
op_helper.c
qregs.h.inc target/m68k: Rename qregs.def -> qregs.h.inc 2022-11-05 20:35:45 +01:00
softfloat_fpsp_tables.h
softfloat.c
softfloat.h
translate.c target/m68k: Rename qregs.def -> qregs.h.inc 2022-11-05 20:35:45 +01:00