[Qemu-devel] [Bug 645662] Re: Python 3.1.2 math errors with Qemu 0.12.5

2017-11-29 Thread Peter Maydell
softfloat deals with doing the basic IEEE ops (add, subtract, multiply, etc) at the correct 80 bit precision, but it doesn't provide implementations of the x87's more complex operations (sin, cos, log, etc), so QEMU is still doing those by converting from 80 bit to host double and using the host C

Re: [Qemu-devel] [Bug 645662] Re: Python 3.1.2 math errors with Qemu 0.12.5

2017-01-23 Thread Arno Wagner
I had a brief look at softfloat. In principle, it should fix the issue, but only if the FPU uses 80-bit double-extended-precision internally. I guess the qemu FPU is still stuck at 64 bit double internally and that does not cut it for some calculations. Just to be sure, I re-tested the code from

[Qemu-devel] [Bug 645662] Re: Python 3.1.2 math errors with Qemu 0.12.5

2017-01-23 Thread Thomas Huth
Looks like your test code from comment #1 still prints out a wrong value, so the bug has apparently not been fixed by the FPU updates... ** Changed in: qemu Status: Incomplete => Triaged -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed

Re: [Qemu-devel] [Bug 645662] Re: Python 3.1.2 math errors with Qemu 0.12.5

2017-01-19 Thread Arno Wagner
Hi, I just tried for about 2 hours without success or getting any useful diagnostic to compile and run current qemu 2.8. No console, no window opens, -curses does not work in .configure, despite ncurses-dev being installed, etc. Quite frankly, as I have not used qemu for several years now, I c

[Qemu-devel] [Bug 645662] Re: Python 3.1.2 math errors with Qemu 0.12.5

2017-01-19 Thread Thomas Huth
Can you still reproduce this problem with the latest version of QEMU? As far as I know, the FPU emulation has been completely switched to softfloat with the latest versions, so I assume your problem might be fixed in recent releases... ** Changed in: qemu Status: New => Incomplete -- You

[Qemu-devel] [Bug 645662] Re: Python 3.1.2 math errors with Qemu 0.12.5

2010-10-24 Thread Arno Wagner
And I unexpectedly had more time to dig. Findings: - asinh() is not in IEEE754, please ignore my comment about non-conformity, sorry. - The calculation for asinh() is pretty badly conditioned, i.e. it blows up errors in the basic calculations. - asinh() is implemented in glibc in as

[Qemu-devel] [Bug 645662] Re: Python 3.1.2 math errors with Qemu 0.12.5

2010-10-23 Thread Arno Wagner
Just found time to look a bit deeper into this. The problem is in the (real) asinh() function. I think it is possible that somewhere a calculation was done in float instead of double or a double value was shortened to float. Please note that until this is fixed, qemu i386 is not IEEE754 conform.

[Qemu-devel] [Bug 645662] Re: Python 3.1.2 math errors with Qemu 0.12.5

2010-10-23 Thread Arno Wagner
Forgot so say: This is still present in 0.13.0. -- Python 3.1.2 math errors with Qemu 0.12.5 https://bugs.launchpad.net/bugs/645662 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: When doing the reg