From: KONRAD Frederic <frederic.konrad@adacore.com>
To: Thomas Huth <thuth@redhat.com>, Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
william lin <wlsaidhi@gmail.com>
Subject: Re: [Qemu-devel] [Bug 645662] x87 fpu emulation not accurate enough
Date: Wed, 6 Dec 2017 12:15:52 +0100 [thread overview]
Message-ID: <a963af28-4a7f-6159-c18e-cfe8e861cebf@adacore.com> (raw)
In-Reply-To: <7b448f9c-0ad2-aa5a-e76d-ce434abf57b9@redhat.com>
On 11/29/2017 04:32 PM, Thomas Huth wrote:
> On 29.11.2017 16:20, KONRAD Frederic wrote:
>>
>>
>> On 11/29/2017 01:51 PM, Peter Maydell wrote:
>>> On 29 November 2017 at 12:47, KONRAD Frederic
>>> <frederic.konrad@adacore.com> wrote:
>>>> Maybe a little hack might work for x86 on x86 though.
>>>> Something like hardcoding the helper with an inline assembly
>>>> code?
>>>
>>> The set of people who want to emulate x86 on x86 is surely
>>> even smaller than the already tiny set of people who want to
>>> emulate x86 at all. I don't think it makes sense to add
>>> inline assembly hacks for that: QEMU should (as far as
>>> is reasonably possible) behave the same on all hosts.
>>>
>>
>> Sure it was a first step suggestion.
>
> FYI, there is some code in WinUAE / Previous which might be usable, see
> e.g. WinUAE sources here:
>
> https://github.com/tonioni/WinUAE/blob/master/softfloat/softfloat_fpsp.cpp
>
> But the code is targetted for m68k only so far, so it likely needs some
> work, and we're currently discussing whether it's feasible to include it
> into QEMU at all, see this thread here:
>
> https://lists.gnu.org/archive/html/qemu-devel/2017-11/msg05342.html
>
> Thomas
>
oops.
Hi Thomas sorry missed this mail.
I saw this thread, I'm not sure if m68k use the 80bits
arithmetic either.
BTW why don't we just use the long double cosl / sinl in the
helper?
It seems to me it can just fix the bug here (on linux host at
least, I think windows doesn't support them). We just lack the
long double <-> FloatX80 conversions here.
Fred
prev parent reply other threads:[~2017-12-06 11:16 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
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 [this message]
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=a963af28-4a7f-6159-c18e-cfe8e861cebf@adacore.com \
--to=frederic.konrad@adacore.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
--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).