qemu-devel
[Top][All Lists]
Advanced

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

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


From: Laurent Vivier
Subject: Re: [PATCH 4/4] target/m68k: fix FPSR quotient byte for frem instruction
Date: Sun, 1 Jan 2023 18:26:40 +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. 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 | 15 ++++++++++++---
  1 file changed, 12 insertions(+), 3 deletions(-)


Reviewed-by: Laurent Vivier <laurent@vivier.eu>




reply via email to

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