From owner-freebsd-mips@freebsd.org Wed Jan 10 20:29:34 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 BFF48E74D4F for ; Wed, 10 Jan 2018 20:29:34 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 9A3896A7B8 for ; Wed, 10 Jan 2018 20:29:34 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.ysv.freebsd.org (Postfix) id 95487E74D4E; Wed, 10 Jan 2018 20:29:34 +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 94C8AE74D4D for ; Wed, 10 Jan 2018 20:29:34 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5B6156A7B7 for ; Wed, 10 Jan 2018 20:29:34 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x232.google.com with SMTP id t63so834772iod.0 for ; Wed, 10 Jan 2018 12:29:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=BcpHIAAsgSmsBQfYuJMDfrEyMxSQ/h0o5FY4KgGGxb4=; b=OiVygFWgtken/YRgfYNaw4CkhCrUp5qjz3xVJogLct3rWtNpTBpIgR6wRUd+XyO4E8 NEAVnmFFpaXHWbZmMWjcRQLnZyE+tluTc1LJHOc4T1F7meNPd92mGfezg11EzQorGcPL z0SKV0uWEyg3BKsxuaAMQwEBwmXYc6au+1LciV/SC5ybv3JJNHVtH0+ejZw3KpyBeTvr 5MTIDzaFPaHrrOajN0X4T1BtWsR2PFd2G3hrKHpDYwanYigbrUYl8ztKzlU7IbZ+J0d3 tfVgNYeCWMbFxcoBqOQ/pisIp2UfN2Xjg8wUefRdfAE/LvYMKPP4Of4b32jwR1MRxuNC fCYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=BcpHIAAsgSmsBQfYuJMDfrEyMxSQ/h0o5FY4KgGGxb4=; b=Ud5/ZhFSaYA+z/ka3AasfhywlvfbfKmxDHiu7DISLfSgjNjxKq2Q4mLGyRAo+YFiy/ s3n2K47ChCAZsCRSgOIP5aOK0bkUV+iA5/EMIZEPISGAiyG0e0I+2aXJPNiIt0MBfpTP xAApHsYt5o0nZAn3z8f1bweK/KG+YuWGmrLrWsdWTjhatci8SBIeVW4sKWi4N+MM5tXx OLrWdf6O+LB8FHwED3LEhbuXfjnEKW3AWgyC2wQxIoOEzvOy+ePEeYehKSZ4MNVY3++n FeyjgSiYqKRIFUh/LAu6HtRAqyE1Q4F8hFTpVfSN6ihZzFI0bqPAAZ5sadAx/huPim92 3qGQ== X-Gm-Message-State: AKGB3mJrRATVO/9RTvrXAjlG6y9LFuD8EMS4THiYHKGeMnCHnnOykZbz fZHnMdVVwi/qK88AZI8Ma8F27eQzbE5tSoviwHcVoA== X-Google-Smtp-Source: ACJfBov5vBtryYRHtS0rh3KQfUQacgZ/R11LTeZB+OZJ4UE7tr9VG+y18mh3B/CLlR/ZP98Bd8cGB/KlYarOqDnaffM= X-Received: by 10.107.142.143 with SMTP id q137mr19828450iod.301.1515616173667; Wed, 10 Jan 2018 12:29:33 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.160.217 with HTTP; Wed, 10 Jan 2018 12:29:33 -0800 (PST) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: <2059726.KWgedH7NrU@ralph.baldwin.cx> References: <2059726.KWgedH7NrU@ralph.baldwin.cx> From: Warner Losh Date: Wed, 10 Jan 2018 13:29:33 -0700 X-Google-Sender-Auth: 616I5QeAnX6W4oqrKassUwpp7eU Message-ID: Subject: Re: Switch to hard-float by default? To: John Baldwin Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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 20:29:34 -0000 On Wed, Jan 10, 2018 at 12:54 PM, John Baldwin wrote: > 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? > I think that I retired the last set of SoCs that only had soft float. I think this is a good idea. The only use case I can think of is if I'm wrong and some of the early Atheros SoCs can do soft float. But then we'd just have one supported soft-float platform to worry about rather than the full generality we have now. Warner