From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8425 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH v2] Add PowerPC soft-float support Date: Sun, 30 Aug 2015 19:05:56 -0400 Message-ID: <20150830230556.GU7833@brightrain.aerifal.cx> References: <1436526171-32110-1-git-send-email-nbd@openwrt.org> <20150806224749.GA32423@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1440975972 4688 80.91.229.3 (30 Aug 2015 23:06:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Aug 2015 23:06:12 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8437-gllmg-musl=m.gmane.org@lists.openwall.com Mon Aug 31 01:06:12 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ZWBfu-0005A6-Ub for gllmg-musl@m.gmane.org; Mon, 31 Aug 2015 01:06:11 +0200 Original-Received: (qmail 26464 invoked by uid 550); 30 Aug 2015 23:06:09 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 26446 invoked from network); 30 Aug 2015 23:06:09 -0000 Content-Disposition: inline In-Reply-To: <20150806224749.GA32423@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:8425 Archived-At: On Fri, Aug 07, 2015 at 12:47:50AM +0200, Szabolcs Nagy wrote: > * Felix Fietkau [2015-07-10 13:02:51 +0200]: > > Some PowerPC CPUs (e.g. Freescale MPC85xx) have a completely different > > instruction set for floating point operations (SPE). > > Executing regular PowerPC floating point instructions results in > > "Illegal instruction" errors. > > > > Make it possible to run these devices in soft-float mode. I'd like to follow up on this now that the 1.1.11 release is out. Let's try to go ahead and get it in on the musl side while we try to get the gcc patches tweaked and upstream... > thanks, this looks good > > i used > > #define MUSL_DYNAMIC_LINKER \ > "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1" > > in gcc to get a soft float toolchain. > (MUSL_DYNAMIC_LINKER_E is "le" on little endian). > but i'm not yet sure if -msoft-float is always passed > down by gcc for soft float targets. > > (the gcc config files are rather messy, there might be more > ppc abi variants lurking there) > > > Signed-off-by: Felix Fietkau > > --- > > arch/powerpc/reloc.h | 8 ++++++- > > configure | 4 ++++ > > src/fenv/powerpc-sf/fenv.sub | 1 + > > this is not enough for fenv. > > unsupported FE_* macros must be hidden in arch/powerpc/bits/fenv.h > (see e.g. how arm does it), exceptions and non-nearest rounding > are not supported for soft float. > > the rest looks ok to me. Felix, do you have patches for fenv.h? Rich