From owner-freebsd-stable Tue Aug 21 9:17:42 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mail.webmonster.de (datasink.webmonster.de [194.162.162.209]) by hub.freebsd.org (Postfix) with SMTP id 11A5837B40A for ; Tue, 21 Aug 2001 09:17:32 -0700 (PDT) (envelope-from karsten@rohrbach.de) Received: (qmail 69488 invoked by uid 1000); 21 Aug 2001 16:17:52 -0000 Date: Tue, 21 Aug 2001 18:17:52 +0200 From: "Karsten W. Rohrbach" To: Peter Wemm Cc: Mike Smith , freebsd-stable@freebsd.org Subject: Re: New kernel option CPU_ENABLE_SSE Message-ID: <20010821181752.V45276@mail.webmonster.de> References: <20010819061017.92A3438FD@overcee.netplex.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="MLcyhLwX/7AHNQNx" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010819061017.92A3438FD@overcee.netplex.com.au>; from peter@wemm.org on Sat, Aug 18, 2001 at 11:10:17PM -0700 X-Arbitrary-Number-Of-The-Day: 42 X-URL: http://www.webmonster.de/ X-Disclaimer: My opinions do not necessarily represent those of my employer X-Work-URL: http://www.ngenn.net/ X-Work-Address: nGENn GmbH, Schloss Kransberg, D-61250 Usingen-Kransberg, Germany X-Work-Phone: +49-6081-682-304 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --MLcyhLwX/7AHNQNx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Peter Wemm(peter@wemm.org)@2001.08.18 23:10:17 +0000: > Mike Smith wrote: > > > >> Because not all i686'es support SSE. > > > > > > > >So detect it automatically based on the CPU feature bits. > > > > > > > >Needing a kernel compile option for this is unforgivably lame. If y= ou > > > >want to be able to disable it, use a tunable. > > > > Perhaps; the "gist" I get is that the compile option is for > > > some "field-testing." Maybe similarly appropriate would be > > > something similar to "NO_F00F_HACK"; for example, > > > "CPU_DISABLE_SSE" or "CPU_NO_ENABLE_SSE" (?). > >=20 > > All of this stuff is unforgivably lame. Tunables. Tunables. Dammit. = 8) >=20 > Tunables cant compile out the support code. just a quick note: the cpuflags in no way affect build options for ports. the cpuflags do not affect building the source. would it make sense for /etc/make.conf to evalute a magic cpu type such as CPUTYPE=3Dauto or CPUTYPE=3Dlocal which throws in additional decision logic for the ports make system. quick example: port graphics/png has a flag WITH_PNG_MMX which makes sense. if we know the cpuflags from the build system we could enable it depending on the hardware it gets compiled on (or, with a fancier layout of the way flags are defined in a config file, generate templates for specific standard boxes). IMHO, this would be very convenient for package builds ;-) at the moment i got several /etc/make.conf files i cat into place before package building, but i got to double-check every single port... /k --=20 > Friends don't let friends use sendmail. KR433/KR11-RIPE -- WebMonster Community Founder -- nGENn GmbH Senior Techie http://www.webmonster.de/ -- ftp://ftp.webmonster.de/ -- http://www.ngenn.n= et/ karsten&rohrbach.de -- alpha&ngenn.net -- alpha&scene.org -- catch@spam.de GnuPG 0x2964BF46 2001-03-15 42F9 9FFF 50D4 2F38 DBEE DF22 3340 4F4E 2964 B= F46 Please do not remove my address from To: and Cc: fields in mailing lists. 1= 0x --MLcyhLwX/7AHNQNx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7gomwM0BPTilkv0YRAl2LAJ9R97GEAzHSEvSI8xtumdhJF87xrQCfQSAQ 6EMd9vIrQqwTWLHtpN5CwtQ= =gGXF -----END PGP SIGNATURE----- --MLcyhLwX/7AHNQNx-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message