qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 3/4] target/m68k: fix FPSR quotient byte for fmod instruct


From: Richard Henderson
Subject: Re: [PATCH v2 3/4] target/m68k: fix FPSR quotient byte for fmod instruction
Date: Wed, 4 Jan 2023 09:59:14 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 1/4/23 05:45, Mark Cave-Ayland wrote:
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>
Reviewed-by: Laurent Vivier<laurent@vivier.eu>
---
  target/m68k/fpu_helper.c | 9 ++++-----
  1 file changed, 4 insertions(+), 5 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]