From 63809a2c71ea1d50aca6165a73b13fee0eae1d84 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 16 Apr 2012 15:14:06 -0700 Subject: volk: fix for cpuid_eax check with hardcoded values --- volk/tmpl/volk_cpu.tmpl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'volk/tmpl') diff --git a/volk/tmpl/volk_cpu.tmpl.c b/volk/tmpl/volk_cpu.tmpl.c index 58b2cfbd2..1bd1ad211 100644 --- a/volk/tmpl/volk_cpu.tmpl.c +++ b/volk/tmpl/volk_cpu.tmpl.c @@ -164,8 +164,8 @@ static int i_can_has_$arch.name (void) { #else if $arch.op == 0x80000001 #if defined(VOLK_CPU_x86) #set $op = hex($arch.op) - unsigned int extended_fct_count = cpuid_eax($op); - if (extended_fct_count < $op) + unsigned int extended_fct_count = cpuid_eax(0x80000000); + if (extended_fct_count < 0x80000001) return $(arch.val)^1; unsigned int extended_features = cpuid_e$(arch.reg)x ($op); return ((extended_features >> $arch.shift) & 1) == $arch.val; -- cgit