All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: <yocto@yoctoproject.org>
Subject: Re: TARGET_FPU not getting populated for powerpc 405/440 fpu-hard targets
Date: Fri, 24 Aug 2012 11:55:58 -0500	[thread overview]
Message-ID: <5037B21E.4060004@windriver.com> (raw)
In-Reply-To: <EA466178-7AF0-4E00-9D24-88A40709B2D1@gmail.com>

On 8/24/12 11:49 AM, Elvis Dowson wrote:
> Hi Khem,
>
> On Aug 24, 2012, at 8:35 PM, Khem Raj wrote:
>
>> On Fri, Aug 24, 2012 at 9:27 AM, Elvis Dowson <elvis.dowson@gmail.com
>> <mailto:elvis.dowson@gmail.com>> wrote:
>>> I just observed that TARGET_FPU is not getting populated, when you do
>>> a build for fpu-hard targets. For fpu-soft targets, it displays TARGET_FPU =
>>> "soft", but for fpu-hard targets, it display TARGET_FPU = "".
>>
>> that means default is hard for this architecture. This option is
>> essentially used to configure gcc
>> unless your fpu is special like fsl one's you are good here.
>
> The FPU unit is an IP core, that is attached to a generic PowerPC405 or
> PowerPC440 embedded processor core on the FPGA, which by default doesn't contain
> an FPU unit.
>
> In the Xilinx FPGA hardware project, I have to add this FPU unit, and there are
> some additional options that I can see relevant to this setup with the FPU unit,
> such as -mxilinx-fpu and -mfpu=dp_full
>
> Should I specify them in TUNE_CCARGS (as shown below)
> or TUNE_FEATURES_tune-ppc405e (not done below) or specify the same values for
> both variables ?
>
> TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc405e", "-mcpu=405fp
> -mxilinx-fpu -mfpu=dp_full", "", d)}"
>
> AVAILTUNES += "ppc405e"
> TUNE_FEATURES_tune-ppc405e = "m32 ppc405e fpu-hard"

fpu-hard is the classic PowerPC FPU unit.  If that is what these ip blocks 
implement then there is nothing further required.

If the unit does NOT include a classic PowerPC FPU, then you should not be using 
fpu-hard.

If it -also- implements additional FPU instructions via the -m...fpu stuff 
specific to the IP blocks, then that is where the target_fpu comes in and some 
other changes will be necessary.... It's been a while since I worked through 
this, but the e500 stuff may be a reasonable example of how to implement it.

--Mark

> Best regards,
>
> Elvis Dowson
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



      parent reply	other threads:[~2012-08-24 16:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-24 16:27 TARGET_FPU not getting populated for powerpc 405/440 fpu-hard targets Elvis Dowson
2012-08-24 16:35 ` Khem Raj
2012-08-24 16:49   ` Elvis Dowson
2012-08-24 16:52     ` Khem Raj
2012-08-24 16:55     ` Mark Hatle [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=5037B21E.4060004@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=yocto@yoctoproject.org \
    /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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.