cpuid doesn't actually change the flags register
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404146
This commit is contained in:
parent
a0fd7e1cba
commit
115c22f261
1 changed files with 4 additions and 4 deletions
|
@ -166,7 +166,7 @@ CPU_getCPUIDFeatures(void)
|
||||||
" popl %%ebx\n"
|
" popl %%ebx\n"
|
||||||
: "=m" (features)
|
: "=m" (features)
|
||||||
:
|
:
|
||||||
: "%eax", "%ecx", "%edx", "cc"
|
: "%eax", "%ecx", "%edx"
|
||||||
);
|
);
|
||||||
#elif defined(__GNUC__) && defined(__x86_64__)
|
#elif defined(__GNUC__) && defined(__x86_64__)
|
||||||
__asm__ (
|
__asm__ (
|
||||||
|
@ -183,7 +183,7 @@ CPU_getCPUIDFeatures(void)
|
||||||
" popq %%rbx\n"
|
" popq %%rbx\n"
|
||||||
: "=m" (features)
|
: "=m" (features)
|
||||||
:
|
:
|
||||||
: "%rax", "%rcx", "%rdx", "cc"
|
: "%rax", "%rcx", "%rdx"
|
||||||
);
|
);
|
||||||
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
|
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
|
||||||
__asm {
|
__asm {
|
||||||
|
@ -238,7 +238,7 @@ CPU_getCPUIDFeaturesExt(void)
|
||||||
" popl %%ebx\n"
|
" popl %%ebx\n"
|
||||||
: "=m" (features)
|
: "=m" (features)
|
||||||
:
|
:
|
||||||
: "%eax", "%ecx", "%edx", "cc"
|
: "%eax", "%ecx", "%edx"
|
||||||
);
|
);
|
||||||
#elif defined(__GNUC__) && defined (__x86_64__)
|
#elif defined(__GNUC__) && defined (__x86_64__)
|
||||||
__asm__ (
|
__asm__ (
|
||||||
|
@ -254,7 +254,7 @@ CPU_getCPUIDFeaturesExt(void)
|
||||||
" popq %%rbx\n"
|
" popq %%rbx\n"
|
||||||
: "=m" (features)
|
: "=m" (features)
|
||||||
:
|
:
|
||||||
: "%rax", "%rcx", "%rdx", "cc"
|
: "%rax", "%rcx", "%rdx"
|
||||||
);
|
);
|
||||||
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
|
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
|
||||||
__asm {
|
__asm {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue