Browse code

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit e58fc44649d07d523fcd17aa10d9eb0d3a5ef3f4)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

lvqcl authored on 2014/09/27 20:21:31
Showing 1 changed files
... ...
@@ -45,7 +45,7 @@
45 45
         "cpuid                       \n\t"                      \
46 46
         "xchg   %%"REG_b", %%"REG_S                             \
47 47
         : "=a" (eax), "=S" (ebx), "=c" (ecx), "=d" (edx)        \
48
-        : "0" (index))
48
+        : "0" (index), "2"(0))
49 49
 
50 50
 #define xgetbv(index, eax, edx)                                 \
51 51
     __asm__ (".byte 0x0f, 0x01, 0xd0" : "=a"(eax), "=d"(edx) : "c" (index))