aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2023-01-14 23:29:59 +0000
committerLaurent Vivier <laurent@vivier.eu>2023-01-16 09:47:31 +0100
commit1a282f60a971aa86e3cdd1b7ca000790e43bb310 (patch)
tree085450f7e196237764503a8f259c0e1a08ec5b7c /hw
parentad6dae3b3369433ab43a1b190bb3a8aacabb1bbf (diff)
downloadqemu-1a282f60a971aa86e3cdd1b7ca000790e43bb310.zip
qemu-1a282f60a971aa86e3cdd1b7ca000790e43bb310.tar.gz
qemu-1a282f60a971aa86e3cdd1b7ca000790e43bb310.tar.bz2
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>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions