Commit 437f6fb4 authored by lvqcl's avatar lvqcl Committed by Michael Niedermayer

avutil/x86/cpu: fix cpuid sub-leaf selection

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
(cherry picked from commit e58fc446)
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f913da3e
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
"cpuid \n\t" \ "cpuid \n\t" \
"xchg %%"REG_b", %%"REG_S \ "xchg %%"REG_b", %%"REG_S \
: "=a" (eax), "=S" (ebx), "=c" (ecx), "=d" (edx) \ : "=a" (eax), "=S" (ebx), "=c" (ecx), "=d" (edx) \
: "0" (index)) : "0" (index), "2"(0))
#define xgetbv(index, eax, edx) \ #define xgetbv(index, eax, edx) \
__asm__ (".byte 0x0f, 0x01, 0xd0" : "=a"(eax), "=d"(edx) : "c" (index)) __asm__ (".byte 0x0f, 0x01, 0xd0" : "=a"(eax), "=d"(edx) : "c" (index))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment