[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patches] status of glibc for e500/mpc8540 ?
- To: Philippe De Muyter <phdm@xxxxxxxxx>
- Subject: Re: [patches] status of glibc for e500/mpc8540 ?
- From: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
- Date: Fri, 02 Nov 2007 11:31:43 -0700
Philippe De Muyter wrote:
> A quick search reveals that the culprit asm sequences are :
> ({ fenv_t env; asm volatile ("mffs %0" : "=f" (env)); env; })
> and
> ({ double d = (env); asm volatile ("mtfsf 0xff,%0" : : "f" (d)); })
>
> I did not check precisely, but I surmise that "f" is a constraint that
> exists in an original powerpc, but not in the e500, and that the problem is
> not only those asm sequences, but that glibc does not incorporate a port
> for the e500.
EGLIBC does support e500. (Freescale is a sponsor of EGLIBC.) However,
I'm not sure if that's been tested with (E)GLIBC 2.7; thus far, most of
the user has been on older branches.
> So my question is : what is the currently recommended approach to get
> a SPE compatible C-library on my MPC8540 board ?
If GLIBC 2.7 isn't a firm requirement, then you might consider:
http://www.codesourcery.com/gnu_toolchains/power
as an easy approach; our latest releases have a pre-built binary version
of GLIBC for e500. (Of course, per LGPL, source is available there too.)
Thanks,
--
Mark Mitchell
CodeSourcery
mark@xxxxxxxxxxxxxxxx
(650) 331-3385 x713