mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 82f5fed6d91a (Linux GCC doesn't seem to like clobbering ebx in inline assembly).
This commit is contained in:
parent
04b27d4cf3
commit
5b7d8ddbe0
@ -2986,10 +2986,14 @@ js_CheckForSSE2()
|
||||
popad
|
||||
}
|
||||
#elif defined __GNUC__
|
||||
asm("movl %1, %%eax; cpuid; movl %%edx, %0;"
|
||||
: "m=" (features) /* output */
|
||||
: "r" (0x01) /* input */
|
||||
: "eax", "ebx", "ecx", "edx" /* clobber list */
|
||||
asm("pusha\n"
|
||||
"mov $0x01, %%eax\n"
|
||||
"cpuid\n"
|
||||
"mov %%edx, %0\n"
|
||||
"popa\n"
|
||||
: "=m" (features)
|
||||
/* We have no inputs */
|
||||
/* We don't clobber anything */
|
||||
);
|
||||
#elif defined __SUNPRO_C || defined __SUNPRO_CC
|
||||
asm("push %%ebx\n"
|
||||
|
Loading…
Reference in New Issue
Block a user