qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v3 4/4] target/m68k: fix FPSR quotient byte for frem instruct


From: Richard Henderson
Subject: Re: [PATCH v3 4/4] target/m68k: fix FPSR quotient byte for frem instruction
Date: Sat, 14 Jan 2023 16:01:42 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 1/14/23 13:29, Mark Cave-Ayland wrote:
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
---
  target/m68k/fpu_helper.c | 29 +++++++++++++++++++----------
  1 file changed, 19 insertions(+), 10 deletions(-)

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

r~



reply via email to

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