From owner-svn-src-head@freebsd.org Sun Feb 23 19:37:19 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DAD71245FF6 for ; Sun, 23 Feb 2020 19:37:19 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48Qb7M0l4fz4b5r for ; Sun, 23 Feb 2020 19:37:18 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1582486636; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=ZpZD+1nTR+BbElKIt7EAXkyjd0W6MmwAeY0lORPUTJJGRiAE9TP1HfMjqai7TlI9DyLb4Gnnam62j H2D43Fgk6nJqYTXTdBzVzlG9LBZEJb8ubkYWFFm3qPcXRoQp/J9xyPWaPcIhWLRyqCRVdMbHmshR1B GcVReEzMRkmgchKDueawKXCbZ+FsY4XJBBHZHzOKeGRKShhXNXeFi0K5L8Nt7gboO44gRnAO6HaAD3 XZ8iCymqAv2Z+VpbZUpvSTs1UTvtU2GDDxVGjpYi97gE5mJkDF0VJdk16Do//VXkmRgmI3XWas5AXF RnkTQeDe2HDUiv6H0FPECYjikivaylw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=5Chfahq0Xelm4O7dtSVlWR6eeYMfQbZXxS6TXxktkg4=; b=ZNjO/DzA/zGp3KEIu2QHB16LmuzcbxoPMym/5DeI6atAWTNv2iHPaAAIXP5A2+1oUKv6a//OldRCE xtzN0kM1kKEI/CCfHegSvHaTzzWiOyRuLO8MLlrT2wYAz3oBFh8M3u04yQQsqc1BePL7TqPyT85sLE GEVliJxyfwdr83XBBgnIkdqYmGtb5UX0HWjv8EFIdmGaABMqPIV6V0dYZDhMMRf1pdyBLIH0DHR/T3 KP0CPk+lmRMZ+GgDFoVRXP0c3wuC8Tkpv+5jMWuY4JREKLGniNT8lntqoYdOlLyP+uLbKnn0BCLe5A w/E5L1AwMOZ5EfczOfP27pxXJAYAevw== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=5Chfahq0Xelm4O7dtSVlWR6eeYMfQbZXxS6TXxktkg4=; b=NIlUjXHWSWiuQ9YBbkFiF3y7BImYDKxU8G+BV63xGkbzC4SACn+GPSQi+D7mSa4R9EQ8EYsAtjha/ aSkkxyqCzpHKctx5Lcr437Y81cVUlaUebi3jvKJA/GA4Gy2A59RQKRg0I7wMfUWdMoTYRHoqkEs+PJ qY1BkQQtT4ITTuuX1r8tl0NCfkwT9qhCPLdSU8c2sgFNY4G7SyXuMJ1qx8riPk7/k6IBnSJQgocruB BzjoHiAA2qiYEwEtTOoTRawbbVto6hYH2CT33gtg93v1YPG+IZ3Uf3z0jowUwFGWPOWkW6ZkVefnU0 eYoxL7KBB4PTBP1YNwFRAkj2eTALo/A== X-MHO-RoutePath: aGlwcGll X-MHO-User: e49fe162-5673-11ea-9eb3-25e2dfa9fa8d X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id e49fe162-5673-11ea-9eb3-25e2dfa9fa8d; Sun, 23 Feb 2020 19:37:15 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 01NJbE8N020010; Sun, 23 Feb 2020 12:37:14 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <66fe6ff74daea4320dc1c89ca36dbad964945081.camel@freebsd.org> Subject: Re: svn commit: r358262 - head/sys/conf From: Ian Lepore To: Warner Losh , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Date: Sun, 23 Feb 2020 12:37:14 -0700 In-Reply-To: <202002231904.01NJ4FmD046982@repo.freebsd.org> References: <202002231904.01NJ4FmD046982@repo.freebsd.org> Content-Type: text/plain; charset="ASCII" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48Qb7M0l4fz4b5r X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.96 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.97)[-0.969,0]; NEURAL_HAM_LONG(-0.99)[-0.995,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Feb 2020 19:37:19 -0000 On Sun, 2020-02-23 at 19:04 +0000, Warner Losh wrote: > Author: imp > Date: Sun Feb 23 19:04:15 2020 > New Revision: 358262 > URL: https://svnweb.freebsd.org/changeset/base/358262 > > Log: > Use MACHINE_ARCH instead of TARGET_ARCH > > TARGET_ARCH is only for use in Makefile.inc1 contexts. MACHINE_ARCH is the > preferred thing to set. Makefile.inc1 sets MACHINE_ARCH in the cross build > case, and make sets it in the native build case. This will fix anybody doing a > native build. Add a comment for why we have to do this dance so when/if the > problem with CFLAGS is fixed for the kernel this workaround can be removed. > I suddenly wonder: why does the kernel build need to know about the float ABI if we don't use floating point in the kernel? If it's about whether to include support for the floating point hardware (save/restore context at the userland boundary, etc), then shouldn't that be controlled with a kernel config option or device statement like it is on other arches? If the kernel actually is being compiled with different -march= to generate hardfloat instructions/register usage/etc, then shouldn't there be some compiler-defined macro to indicate that? (A quick search says that __riscv_float_abi_soft may be that macro.) -- Ian