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 target/m68k: use M68K_FEATURE_MOVEFROMSR_PRIV feature for move_from_sr privilege check 2022-09-26 23:37:22 +02:00
fpu_helper.c target/m68k: fix FPSR quotient byte for frem instruction 2023-01-16 09:47:31 +01:00
gdbstub.c
helper.c target/m68k: rename M68K_FEATURE_M68000 to M68K_FEATURE_M68K 2022-09-21 15:10:49 +02:00
helper.h
Kconfig
m68k-semi.c target/m68k: Convert semihosting errno to gdb remote errno 2022-09-13 17:18:21 +01:00
meson.build
monitor.c
op_helper.c accel/tcg: Remove will_exit argument from cpu_restore_state 2022-11-01 08:31:41 +11:00
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