Re: [Qemu-devel] x86 FPU Emulation,

2005-07-19 Thread The Qube
Okay, I figured out the problem. fscale should be defined as ST0*(2^int(ST1)). Here's the patch malc created, using ldexp: diff -u -u -r1.49 helper.c --- target-i386/helper.c24 Apr 2005 18:04:33 - 1.49 +++ target-i386/helper.c19 Jul 2005 19:00:16 - @@ -2832,11 +283

Re: [Qemu-devel] x86 FPU Emulation

2005-07-18 Thread Christian MICHON
I see the same problems on bartpe (XP winpe compatible). By the way, on XP (guest or host), you need to type calc387 2^^4. But I've tested other software, notably 3D images raytracers, using FP operations. No such problems. Images look good. Yet I guess I should do a pixel per pixel comparison to

[Qemu-devel] x86 FPU Emulation

2005-07-17 Thread The Qube
Using any DOS/DOS-like setup under qemu x86 (no kqemu/qvm86) and running calc387 will produce non-sane results. For example, "calc387 2^4" produces 17.7635. "calc387 4^2" produces 17.7635 as well. I've verified this is not an issue with calc387 by running the above two calculations under dos