From owner-freebsd-arch Wed Apr 26 22:30:42 2000 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 57CAC37BE58 for ; Wed, 26 Apr 2000 22:30:40 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id HAA21805 for ; Thu, 27 Apr 2000 07:30:39 +0200 (CEST) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id HAA06108 for freebsd-arch@freebsd.org; Thu, 27 Apr 2000 07:30:39 +0200 (CEST) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 6647237B647; Wed, 26 Apr 2000 22:29:40 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id XAA93215; Wed, 26 Apr 2000 23:29:38 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id XAA50165; Wed, 26 Apr 2000 23:28:39 -0600 (MDT) Message-Id: <200004270528.XAA50165@harmony.village.org> To: Kris Kennaway Subject: Re: MACHINE_CPU Cc: arch@freebsd.org In-reply-to: Your message of "Fri, 21 Apr 2000 18:04:52 PDT." References: Date: Wed, 26 Apr 2000 23:28:39 -0600 From: Warner Losh Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message Kris Kennaway writes: : I want to enable support for CPU-specific assembler code in things like : libgmp, openssl, etc, which requires knowledge of the target CPU type (not : just the architecture). For example, OpenSSL only includes asm code for : pentium and above, so we can't just build it if MACHINE_ARCH == "i386". : : The obvious way to do this is to add a MACHINE_CPU to sys.mk and add a : shadow TARGET_CPU in Makefile.inc1. Any objections to this approach? Don't call it MACHINE_CPU. That's a bad name. In the MIPS world there are dozens of CPUs that all implement the same ISA. I'd be more inclined to call it {MACHINE,TARGET}_ISA. After all, it is supposed to connote a level along a continuum of CPUs that are produced by one or more vendors. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message