mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: [PATCH v2] Add PowerPC soft-float support
Date: Sun, 30 Aug 2015 19:05:56 -0400	[thread overview]
Message-ID: <20150830230556.GU7833@brightrain.aerifal.cx> (raw)
In-Reply-To: <20150806224749.GA32423@port70.net>

On Fri, Aug 07, 2015 at 12:47:50AM +0200, Szabolcs Nagy wrote:
> * Felix Fietkau <nbd@openwrt.org> [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 <nbd@openwrt.org>
> > ---
> >  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


      parent reply	other threads:[~2015-08-30 23:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-10 11:02 Felix Fietkau
2015-08-06 22:47 ` Szabolcs Nagy
2015-08-07  1:55   ` Khem Raj
2015-08-07 11:32     ` Szabolcs Nagy
2015-08-30 23:05   ` Rich Felker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150830230556.GU7833@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).