Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2007 23:16:48 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Stefan Lambrev <stefan.lambrev@sun-fish.com>
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: CPUTYPE
Message-ID:  <20070523211648.GE3705@slackbox.xs4all.nl>
In-Reply-To: <465454CF.3060601@sun-fish.com>
References:  <465454CF.3060601@sun-fish.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--+JUInw4efm7IfTNU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, May 23, 2007 at 05:50:55PM +0300, Stefan Lambrev wrote:
>  Hi list,
>=20
>  From what I read the right CPUTYPE for freebsd/amd64 and
>=20
>  CPU: Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz (1995.02-MHz K8-cla=
ss=20
>  CPU)
>   Origin =3D "GenuineIntel"  Id =3D 0x6f6  Stepping =3D 6
>  =20
>  Features=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P=
GE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,
>  TM,PBE>
>   Features2=3D0xe3bd<SSE3,RSVD2,MON,DS_CPL,VMX,EST,TM2,<b9>,CX16,XTPR,<b1=
5>>
>   AMD Features=3D0x20100800<SYSCALL,NX,LM>
>   AMD Features2=3D0x1<LAHF>
>=20
>  I should use CPUTYPE?=3Dnocona , right?
>  I just want to be sure :)

Have a look at /usr/src/share/mk/bsd.cpu.mk, especially the bit that
says "Set up the list of CPU features based on the CPU type":

=2E elif ${MACHINE_ARCH} =3D=3D "amd64"
=2E  if ${CPUTYPE} =3D=3D "opteron" || ${CPUTYPE} =3D=3D "athlon64" || ${CP=
UTYPE} =3D=3D "k8"
MACHINE_CPU =3D k8 3dnow
=2E  elif ${CPUTYPE} =3D=3D "nocona"
MACHINE_CPU =3D sse3
=2E  endif
MACHINE_CPU +=3D amd64 sse2 sse mmx

The only extra featuree for "nocona" seems to be the SSE3
instructions. Since your 'Features2' lists SSE3, it is correct.
=20
>  Also is nocona right for all Intel x86_64 processors (if I run=20
>  freebsd/amd64)
>  like xeon, new pentium D, core (2) duo and etc?

See http://en.wikipedia.org/wiki/SSE3

Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--+JUInw4efm7IfTNU
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (FreeBSD)

iD8DBQFGVK9AEnfvsMMhpyURAu4GAJ4vSH8FsyBjKKzYMJU59gqde1LdkwCeMlyi
/FziR+xftIOaYNywUKsV5yg=
=Ao/g
-----END PGP SIGNATURE-----

--+JUInw4efm7IfTNU--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070523211648.GE3705>