Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cpuflags (optimal compiler flags for building)



On Mon, 8 Dec 2008, Pouya D. Tafti wrote:

I see the same on a Core 2 Duo (I don't know what the correct output
would be).  Here is the output from cpuflags -v (version 1.22):

. /usr/pkg/share/cpuflags/subr_NetBSD
. /usr/pkg/share/cpuflags/subr_gcc
. /usr/pkg/share/cpuflags/subr_x86
ARCH            : -march=prescott
FEATURES        : -mfpmath=sse -msse3
CPUFLAGS        : -mfpmath=sse -msse3 -march=prescott
GCC version     : 4.1.3
OS              : 'NetBSD'
OS version      : '5.99.3'
hw.model        : 'Intel 686-class'
hw.machine      : 'amd64'
hw.machine_arch : 'x86_64'
CPU             : 'Intel Pentium III (Katmai) (686-class), 2527.15
MHz, id 0x10676'
cpu0: Intel Pentium III (Katmai) (686-class), 2527.15 MHz, id 0x10676
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2
8e3fd<SSE3,DTES64,MONITOR,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE41>
cpu0: features3 20100800<SYSCALL/SYSRET,XD,EM64T>
cpu0: "Intel(R) Core(TM)2 Duo CPU     T9400  @ 2.53GHz"
cpu0: I-cache 32KB 64B/line 8-way, D-cache 32KB 64B/line 8-way
cpu0: L2 cache 6MB 64B/line 24-way
cpu0: ITLB 128 4KB entries 4-way
cpu0: DTLB 256 4KB entries 4-way, 32 4MB entries 4-way
cpu0: Initial APIC ID 1
cpu0: Cluster/Package ID 0
cpu0: Core ID 1
cpu0: family 06 model 07 extfamily 00 extmodel 01

        Aha - this is a cpuctl bug - its reporting the CPU as a
        'Intel Pentium III (Katmai) (686-class)'
        which cpuflags diligently maps to pentium3, then trys to "guess up"
        to prescott. Could you open a PR on cpuctl for this?

--
                David/absolute       -- www.NetBSD.org: No hype required --


Home | Main Index | Thread Index | Old Index