summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlvqcl <[email protected]>2014-09-27 13:21:31 +0200
committerMichael Niedermayer <[email protected]>2014-10-04 23:52:28 +0200
commitda5e52010ce8b29e5ec7815477b49a2f3c0ba3df (patch)
tree2d3e713ab05635244129ec8209ad2c6298f6d66a
parente1fd837888ce134e9b1af338345f32c7a414d8c0 (diff)
avutil/x86/cpu: fix cpuid sub-leaf selection
Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit e58fc44649d07d523fcd17aa10d9eb0d3a5ef3f4) Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r--libavutil/x86/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/x86/cpu.c b/libavutil/x86/cpu.c
index 8ad478400c..2b62e92479 100644
--- a/libavutil/x86/cpu.c
+++ b/libavutil/x86/cpu.c
@@ -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))