Re: [Qemu-devel] Patch: fix FSTENV (and FSAVE) instructions in target-i386 (resend, cleaned up).

2010-11-26 Thread ChALkeR
ng wrong? Sorry for my bad English. 2010/11/26 Blue Swirl : > On Fri, Nov 26, 2010 at 1:14 PM, ChALkeR wrote: >> Patch for the bug https://bugs.launchpad.net/qemu/+bug/661696 >> >> The testcase: >> >> $ cat test.c >> #include >> >> extern void *x;

[Qemu-devel] Patch: fix FSTENV (and FSAVE) instructions in target-i386 (resend, cleaned up).

2010-11-26 Thread ChALkeR
Patch for the bug https://bugs.launchpad.net/qemu/+bug/661696 The testcase: $ cat test.c #include extern void *x; int main() { int a; asm volatile ("x: fldz\n\ push %%edx\n\ fnstenv -0xc(%%esp)\n\ pop %%edx\n" : "=d" (a) : : "memory"); printf ("%

[Qemu-devel] Patch: fix FSTENV (and FSAVE) instructions in target-i386.

2010-11-26 Thread ChALkeR
Patch for the bug https://bugs.launchpad.net/qemu/+bug/661696 Testcase: #include extern void *x; int main() { int a; asm volatile ("x: fldz\n\ push %%edx\n\ fnstenv -0xc(%%esp)\n\ pop %%edx\n" : "=d" (a) : : "memory"); printf ("%x %x\n", a, &x); return 0; } $ gcc -m32 test.