|
From: | Laurent Vivier |
Subject: | Re: [PATCH 3/4] target/m68k: fix FPSR quotient byte for fmod instruction |
Date: | Sun, 1 Jan 2023 18:21:17 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 |
Le 01/01/2023 à 15:43, Mark Cave-Ayland a écrit :
The FPSR quotient byte should be set to the value of the quotient and not the result. Switch from using floatx80_mod() to floatx80_modrem() which returns the quotient as a uint64_t which can be used for the quotient byte. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> --- target/m68k/fpu_helper.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
[Prev in Thread] | Current Thread | [Next in Thread] |