qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: KONRAD Frederic <frederic.konrad@adacore.com>
To: william lin <wlsaidhi@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Bug 645662] x87 fpu emulation not accurate enough
Date: Wed, 29 Nov 2017 11:17:18 +0100	[thread overview]
Message-ID: <bc3d213b-543c-5187-70b4-db6d3599f7e4@adacore.com> (raw)
In-Reply-To: <CAGC02hT7OvR1nbyD=AkOqPvxbNPz957=CPZsUxf1FJ73O8W52g@mail.gmail.com>

I would write some more basic tests. eg: at instruction level and
compare KVM vs TCG mode to find out which trigo instructions are
differents (probably not only one).

BTW I'm not floating point expert at all :).

Fred

On 11/29/2017 10:59 AM, william lin wrote:
> Hi,
> 
> The goal of the project is to fix the bug. Sorry I should have been more
> clear.
> 
> This bug has been around for 7+ years now. Qemu switched to softfloat and
> it did not fix this. I think its most likely caused by Qemu's internal
> representation not being accurate enough or accuracy lost during
> conversion. However this is basically what is given to us in the bug
> report, and I have not been able to make much progress past this point, so
> we are asking for help.
> 
> Will
> 
> 
> 
> On Nov 29, 2017 3:39 AM, "KONRAD Frederic" <frederic.konrad@adacore.com>
> wrote:
> 
> Hi,
> 
> I have the same problem here with some of our math testsuites.
> It's about some precision issue with trigonometric tests.
> 
> I didn't had time to figure out what happen neither what is
> really going wrong. eg: trigonometric function or?
> 
> A quick workaround is to use KVM when possible.
> 
> Fred
> 
> 
> On 11/29/2017 09:34 AM, william lin wrote:
> 
>> Hello,
>>
>> I have been looking into this bug
>> <https://bugs.launchpad.net/qemu/+bug/645662> for a school project, and
>>
>> after reproducing the bug and tracing through the code, I have run into a
>> wall trying to figure out the best way to approach this. If there is anyone
>> who is familiar with qemu's fpu and is willing, any tips or suggestions
>> will be fantastic.
>>
>> Thanks,
>>
>> Will & Wes
>>
>>

  reply	other threads:[~2017-11-29 10:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-29  8:34 [Qemu-devel] [Bug 645662] x87 fpu emulation not accurate enough william lin
2017-11-29  9:39 ` KONRAD Frederic
2017-11-29  9:59   ` william lin
2017-11-29 10:17     ` KONRAD Frederic [this message]
2017-11-29 10:27     ` Peter Maydell
2017-11-29 12:47       ` KONRAD Frederic
2017-11-29 12:51         ` Peter Maydell
2017-11-29 15:20           ` KONRAD Frederic
2017-11-29 15:32             ` Thomas Huth
2017-12-06 11:15               ` KONRAD Frederic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bc3d213b-543c-5187-70b4-db6d3599f7e4@adacore.com \
    --to=frederic.konrad@adacore.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wlsaidhi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).