From owner-freebsd-mips@freebsd.org Wed Jan 10 19:54:37 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3AA8EE730FA for ; Wed, 10 Jan 2018 19:54:37 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 2814C68B55 for ; Wed, 10 Jan 2018 19:54:37 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 24523E730F9; Wed, 10 Jan 2018 19:54:37 +0000 (UTC) Delivered-To: mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 23F51E730F7 for ; Wed, 10 Jan 2018 19:54:37 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 04A1D68B54 for ; Wed, 10 Jan 2018 19:54:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (astound-66-234-199-215.ca.astound.net [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id E124D10A8BC for ; Wed, 10 Jan 2018 14:54:34 -0500 (EST) From: John Baldwin To: mips@freebsd.org Subject: Switch to hard-float by default? Date: Wed, 10 Jan 2018 11:54:26 -0800 Message-ID: <2059726.KWgedH7NrU@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Wed, 10 Jan 2018 14:54:35 -0500 (EST) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2018 19:54:37 -0000 I have been working on LLVM libunwind patches for MIPS and the last round has been to teach the unwinder to handle hard-float. As part of this I just fixed a bug which had broken HF support for N32 (in review now), and I have a working 'mipsn32hf' world that boots under qemu. However, if I add 'mipsn32hf' to the list of known targets that is yet another world to add to make universe. I wonder if instead we should consider switching MIPS to assume hard-float by default? We made that change for 32-bit arm recently. The simplest approach would be to add 'mipsn32hf' and then remove all the non '*hf' targets from Makefile.inc1 (if we only wanted to support HF). A more drastic approach would be to change the existing 'mips*' targets to assume hard-float, remove all the '*hf' targets (which are only in 12 anyway I think?) and add in explicit '*sf' targets if anyone has a need for them. Given that none of the *hf targets have been MFC'd are only present in 12 anyway, maybe the more drastic route is actually better? If we do go that route, does anyone have a use case for a '*sf' target? That is, is anyone running FreeBSD/mips on a processor that does not include an FPA? -- John Baldwin