From owner-freebsd-current@FreeBSD.ORG Fri Aug 31 14:31:41 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B542016A41A; Fri, 31 Aug 2007 14:31:41 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx1.freebsd.org (Postfix) with ESMTP id 2C0F313C458; Fri, 31 Aug 2007 14:31:40 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <46D82649.20804@FreeBSD.org> Date: Fri, 31 Aug 2007 16:31:37 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: obrien@freebsd.org, Stefan Lambrev , Roman Divacky , pluknet , freebsd-current@freebsd.org, Bj?rn K?nig References: <-3502020561049594852@unknownmsgid> <20070829191310.GA50909@freebsd.org> <46D66F83.2050208@moneybookers.com> <20070831142458.GE79097@dragon.NUXI.org> In-Reply-To: <20070831142458.GE79097@dragon.NUXI.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Adding k9 and k10 to bsd.cpu.mk X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2007 14:31:41 -0000 David O'Brien wrote: > On Thu, Aug 30, 2007 at 10:19:31AM +0300, Stefan Lambrev wrote: >> k8-sse3, opteron-sse3, athlon64-sse3 > > Yeah, I guess I should add those... though bsd.cpu.mk was architected > with some amount of guessing of what might in the future be useful. > > Is there anything in /usr/src or /usr/ports that actually does anything > with the information? > > . elif ${CPUTYPE} == "prescott" > MACHINE_CPU = sse3 sse2 sse i686 mmx i586 i486 i386 > > . elif ${CPUTYPE} == "nocona" > MACHINE_CPU = sse3 > > for instance. > MACHINE_CPU is supposed to be a complete list of relevant CPU features that ports can use to enable e.g. SSE2 asm optimizations if the CPUTYPE supports it. A number of them exist that do this. Kris