[PATCH] implied CPU extensions
I wonder if the following patch is safe to apply. IMO it should be, but I'd like to doublecheck.. Is it possible for e.g. sse to appear as processor flag, but not mmxext while the processor *does* support mmxext? Diego --- configure 18 Apr 2006 21:16:46 -0000 1.1162 +++ configure 20 Apr 2006 22:50:11 -0000 @@ -800,11 +800,11 @@ for i in $pparam ; do case "$i" in 3dnow) _3dnow=yes ;; - 3dnowext) _3dnow=yes _3dnowex=yes ;; + 3dnowext) _3dnowex=yes ;; mmx) _mmx=yes ;; mmxext) _mmx2=yes ;; mtrr|k6_mtrr|cyrix_arr) _mtrr=yes ;; - xmm|sse|kni) _sse=yes _mmx2=yes ;; + xmm|sse|kni) _sse=yes ;; sse2) _sse2=yes ;; esac done
Hi, Diego Biurrun wrote:
I wonder if the following patch is safe to apply. IMO it should be, but I'd like to doublecheck..
Is it possible for e.g. sse to appear as processor flag, but not mmxext while the processor *does* support mmxext?
I really doubt it. All flags are to be explicitly present, no guess is needed. Guillaume
On Sat, Apr 22, 2006 at 03:08:37PM +0200, Guillaume POIRIER wrote:
Diego Biurrun wrote:
I wonder if the following patch is safe to apply. IMO it should be, but I'd like to doublecheck..
Is it possible for e.g. sse to appear as processor flag, but not mmxext while the processor *does* support mmxext?
I really doubt it. All flags are to be explicitly present, no guess is needed.
OK, applied. Diego
On Saturday 22 April 2006 15:59, Diego Biurrun wrote:
I wonder if the following patch is safe to apply. IMO it should be, but I'd like to doublecheck..
Is it possible for e.g. sse to appear as processor flag, but not mmxext while the processor *does* support mmxext?
I checked on a Pentium 3 Coppermine, and a Pentium 4 3.0Ghz HT. Both support mmxext, but don't report it in cpuflags. With the changes you commited to configure, mmx2 will be disabled on all Intel CPUs, which will obviously be a large speed impact.
On Sat, Apr 22, 2006 at 04:42:55PM +0300, Jan Knutar wrote:
On Saturday 22 April 2006 15:59, Diego Biurrun wrote:
I wonder if the following patch is safe to apply. IMO it should be, but I'd like to doublecheck..
Is it possible for e.g. sse to appear as processor flag, but not mmxext while the processor *does* support mmxext?
I checked on a Pentium 3 Coppermine, and a Pentium 4 3.0Ghz HT. Both support mmxext, but don't report it in cpuflags.
What exactly do they report?
With the changes you commited to configure, mmx2 will be disabled on all Intel CPUs, which will obviously be a large speed impact.
Yeah, I was too quick to commit, I'm reverting the change. Diego
On Saturday 22 April 2006 17:11, Diego Biurrun wrote:
I checked on a Pentium 3 Coppermine, and a Pentium 4 3.0Ghz HT. Both support mmxext, but don't report it in cpuflags.
What exactly do they report?
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 8 model name : Pentium III (Coppermine) stepping : 3 cpu MHz : 802.989 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 mmx fxsr sse bogomips : 1593.34 CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3000.11-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf41 Stepping = 1 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Hyperthreading: 2 logical CPUs
On Saturday 22 April 2006 17:11, Diego Biurrun wrote:
Yeah, I was too quick to commit, I'm reverting the change.
How about this? AMD atleast seems to report mmxext, I was told. The thing that might break are the non-amd/non-intel ones like VIA C3, but if I remember the original thread right, some versions of C3 had SSE but not MMX2. One can only hope that the C3s with MMX2 have mmxext in cpuflags...
On Saturday 22 April 2006 17:40, Jan Knutar wrote:
On Saturday 22 April 2006 17:11, Diego Biurrun wrote:
Yeah, I was too quick to commit, I'm reverting the change.
How about this? AMD atleast seems to report mmxext, I was told. The thing that might break are the non-amd/non-intel ones like VIA C3, but if I remember the original thread right, some versions of C3 had SSE but not MMX2. One can only hope that the C3s with MMX2 have mmxext in cpuflags...
Further examination of the mailing list archives makes me believe that SSE always implies MMX2, even on VIA. Ignore the patch.
On Saturday 22 April 2006 16:54, Jan Knutar wrote:
Further examination of the mailing list archives makes me believe that SSE always implies MMX2, even on VIA. Ignore the patch.
The mmxext flag is reported in the extended level cpuid call. I believe the extended level calls were an AMD "invention" so Intel probably doesn't support it. Centaur, VIA and TransMeta do support it though. --Ivo
participants (4)
-
Diego Biurrun -
Guillaume POIRIER -
Ivo -
Jan Knutar