Why does FBSD always assume it's on an 8080 CPU?

Kris Kennaway kris at obsecurity.org
Sat Jan 27 05:24:35 UTC 2007


On Fri, Jan 26, 2007 at 08:45:15PM -0800, Chris H. wrote:
> Hello and thank you for your response...
> 
> Quoting Mike Jakubik <mikej at rogers.com>:
> 
> >Chris H. wrote:
> >>
> >>CPU: AMD Athlon(tm) XP (1102.51-MHz 686-class CPU)
> >>Origin = "AuthenticAMD"  Id = 0x680  Stepping = 0
> >>Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> AMD 
> >>Features=0xc0400800<SYSCALL,MMX+,3DNow+,3DNow>
> >>
> >>That I simply build world/kernel with an clean (empty) make.conf
> >>and add the following during port(s) building to attain optimum results
> >>given my CPU for this current biuld?
> >>
> >>CPUTYPE?=pentium4
> >>
> >>COPTFLAGS= -march=pentium4 -mmmx -m3dnow -m3dnow+ -msse -msse2
> >
> >Why are you using "pentium4" with an Athlon XP CPU? use "athlonxp" 
> >instead. Also, don't modify the COPTFLAGS.
> >
> 
> Ooops. I've changed it to:
> 
> CPUTYPE?=athlon-4
> CFLAGS+= -march=athlon-4 -mmmx -m3dnow -m3dnow+ -msse -msse2
> 
> Look a little better? :)

No, the CFLAGS is still entirely superfluous.  Just setting CPUTYPE
will DTRT.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070127/d4dc5c38/attachment.pgp


More information about the freebsd-stable mailing list