login
Header Space

 
 

K8, EFFICEON and CORE2 support the cmovxx instructions.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: Andi Kleen <andi@...>, Jeremy Fitzhardinge <jeremy@...>, Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>, Alexander van Heukelum <heukelum@...>, LKML <linux-kernel@...>
Date: Saturday, March 15, 2008 - 3:19 pm

K8, EFFICEON and CORE2 support the cmovxx instructions.

Instead of listing the cpu's that have support for the
cmovxx instructions, list the cpu's that don't.

Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
---

A bit of playing resulted in:

CPUS="M386 M486 M586 M586TSC M586MMX M686 MPENTIUMII MPENTIUMIII"
CPUS=$CPUS" MPENTIUMM MPENTIUM4 MK6 MK7 MK8 MCRUSOE MEFFICEON"
CPUS=$CPUS" MWINCHIPC6 MWINCHIP2 MWINCHIP3D MGEODEGX1 MGEODE_LX"
CPUS=$CPUS" MCYRIXIII MVIAC3_2 MVIAC7 MPSC MCORE2"

for cpu in $CPUS
do
        echo "CONFIG_${cpu}=y" > testconfig
        make ARCH=i386 allnoconfig KCONFIG_ALLCONFIG=testconfig > /dev/null
        echo ${cpu} >> result
        grep X86_CMOV .config >> result
        echo >> result
done

I'm quite sure that K8, EFFICEON and CORE2 support HAVE_CMOV, but
they did not set X86_CMOV.

Greetings,
	Alexander van Heukelum

diff --git a/arch/x86/Kconfig.cpu b/arch/x86/Kconfig.cpu
index 31e92fb..7a3a2d4 100644
--- a/arch/x86/Kconfig.cpu
+++ b/arch/x86/Kconfig.cpu
@@ -399,7 +399,7 @@ config X86_TSC
 # generates cmov.
 config X86_CMOV
 	def_bool y
-	depends on (MK7 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MVIAC3_2 || MVIAC7)
+	depends on !(MCYRIXIII || MGEODE_LX || MGEODEGX1 || MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCRUSOE || MK6 || M586MMX || M586TSC || M586 || M486 || M386)
 
 config X86_MINIMUM_CPU_FAMILY
 	int

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86: merge the simple bitops and move them to bitops.h, Alexander van Heukelum, (Wed Mar 12, 4:01 pm)
Re: [PATCH] x86: merge the simple bitops and move them to bi..., Jeremy Fitzhardinge, (Fri Mar 14, 2:07 pm)
Re: [PATCH] x86: merge the simple bitops and move them to bi..., Alexander van Heukelum, (Fri Mar 14, 3:43 pm)
Re: [PATCH] x86: merge the simple bitops and move them to bi..., Jeremy Fitzhardinge, (Fri Mar 14, 5:15 pm)
[PATCH v2] x86: merge the simple bitops and move them to bit..., Alexander van Heukelum, (Fri Mar 14, 4:35 pm)
[PATCH v3] x86: merge the simple bitops and move them to bit..., Alexander van Heukelum, (Sat Mar 15, 8:04 am)
Re: [PATCH] x86: merge the simple bitops and move them to bi..., Alexander van Heukelum, (Fri Mar 14, 5:33 pm)
K8, EFFICEON and CORE2 support the cmovxx instructions., Alexander van Heukelum, (Sat Mar 15, 3:19 pm)
Re: K8, EFFICEON and CORE2 support the cmovxx instructions., Alexander van Heukelum, (Sat Mar 15, 5:06 pm)
[PATCH] x86: K8, GEODE_LX, CRUSOE, EFFICEON and CORE2 suppor..., Alexander van Heukelum, (Sun Mar 16, 9:16 am)
Re: [PATCH] x86: merge the simple bitops and move them to bi..., Alexander van Heukelum, (Fri Mar 14, 6:01 pm)
Re: [PATCH] x86: merge the simple bitops and move them to bi..., Alexander van Heukelum, (Sat Mar 15, 1:54 pm)
speck-geostationary