Bug 1914 - modify the tune files of ppc targets
Summary: modify the tune files of ppc targets
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-oe-core (show other bugs)
Version: 1.5
Hardware: Other ppc
: Low normal
Target Milestone: 1.5
Assignee: Khem Raj
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-01-18 02:01 UTC by Liming Wang
Modified: 2014-05-05 20:16 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Liming Wang 2012-01-18 02:01:09 UTC
Some ppc targets need suitable tune files to be built, such as qemuppc, mpc8315e-rdb.
Comment 1 Mark Hatle 2012-05-17 20:11:35 UTC
I believe all of the needed PowerPC tunings are in place:

powerpc - classic PPC, hard float
powerpc-nf - classic PPC, soft-float

powerpc64 - classic PPC64, hard float

ppc603e - PPC 603e, hard float

ppce300c2 - PPC e300c2, soft float
ppce500 - PPC e500v1, Single Precision SPE, soft float
ppce500v2 - PPC e500v2, Double Precision SPE, soft float

ppce500mc - PPC e500mc, hard float

ppce5500 - PPC e5500, hard float

ppce550064 - PPC64 e5500, hard float

---

What additional tunings are needed?  The qemuppc is fine w/ powerpc or ppc603e.  The mpc8315 is also fine w/ the 603e, but if someone wanted a ppce300c1 or c3 we could add it as necessary.  (c1/c3 are basically 603e cores..)
Comment 2 Saul Wold 2012-08-13 15:24:41 UTC
If there is any additional issues, please re-open this
Comment 3 Khem Raj 2013-08-14 21:55:41 UTC
we use mac99 emulation for qemuppc, mac99 is essentially a G4 platform which means the 603e tunes are not exactly right for it. big difference I see is FPU is 64bit on ppc74xx whereas 603e has 32bit and additionally it has Altivec.

I am reopening this bug to track activities if we have to add a new tune to match
mac99 platform.
Comment 4 Khem Raj 2013-08-15 14:01:03 UTC
I have sent out a patch to add new appropriate tune files. it also needs a altivec to be enabled in kernel which I have already asked Bruce to add. once these two changes are in I will send out another patch to switch the default tune for qemuppc.
Comment 5 Khem Raj 2014-05-05 20:16:47 UTC
This has been fixed long ago by

commit 9b5572b8014f23747f18a7e0ca30c7094c524920
Author: Khem Raj <raj.khem@gmail.com>
Date:   Thu Aug 15 10:35:27 2013 -0700

    qemuppc: Change default tune to 74xx
    
    We use mac99 as platform for qemuppc
    lets choose a tuning thats appropriate for it
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    Signed-off-by: Saul Wold <sgw@linux.intel.com>

commit 52ea026df141ea23bbab38ad3a9733c15097eaa4
Author: Liming Wang <liming.wang@windriver.com>
Date:   Wed Jan 4 18:29:17 2012 +0800

    qemuppc: replace emulation of qemuppc from prep to mac99
    
    With this new emulation, existing qemuppc functionality is maintained
    and other functionality such as framebuffer + sato and NFS boot are
    added.
    
    Signed-off-by: Liming Wang <liming.wang@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>