Commit e58fc446 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>
parent 233d1acb
......@@ -45,7 +45,7 @@
"cpuid \n\t" \
"xchg %%"REG_b", %%"REG_S \
: "=a" (eax), "=S" (ebx), "=c" (ecx), "=d" (edx) \
: "0" (index))
: "0" (index), "2"(0))
#define xgetbv(index, eax, edx) \
__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