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;
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 ("%
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.