Skip to contentSkip to conversation

mpc8315e-rdb: Set TARGET_FPU correct

PATCH In review Kumar Gala 4 participants 8 messages Jul 15, 2011 – Jul 22, 2011

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 mpc8315e-rdb: Set TARGET_FPU correct

The MPC8315E has a e300c3 core in it with 'classic' or normal PPC floating point.

'SPE' floating point is what exists on the e500v2 core.

---
 meta-yocto/conf/machine/mpc8315e-rdb.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta-yocto/conf/machine/mpc8315e-rdb.conf +1 -1
index 095d113..3f946a0 100644
@@ -2,7 +2,7 @@
 #@DESCRIPTION: Machine configuration for running 
 
 TARGET_ARCH = "powerpc"
-TARGET_FPU = "spe"
+TARGET_FPU = "hard"
 
 require conf/machine/include/tune-ppc603e.inc
 
Signature · 1 line
1.7.3.4
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Kumar Gala

The MPC8315E has a e300c3 core in it with 'classic' or normal PPC floating point.

'SPE' floating point is what exists on the e500v2 core.

Been meaning to change this for a while, the good news, is that the setting doesn't make any difference at the moment :)

Cheers,

Bruce

Quoted 19 lines
---
  meta-yocto/conf/machine/mpc8315e-rdb.conf |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
meta-yocto/conf/machine/mpc8315e-rdb.conf +1 -1
index 095d113..3f946a0 100644
@@ -2,7 +2,7 @@
  #@DESCRIPTION: Machine configuration for running
 
  TARGET_ARCH = "powerpc"
-TARGET_FPU = "spe"
+TARGET_FPU = "hard"
 
  require conf/machine/include/tune-ppc603e.inc
 
author
#2 lore raw
Quoted 6 lines · Bruce Ashfield
Quoted 4 lines · Kumar Gala

The MPC8315E has a e300c3 core in it with 'classic' or normal PPC floating point.

'SPE' floating point is what exists on the e500v2 core.

Quoted 8 lines

Been meaning to change this for a while, the good news, is that the setting doesn't make any difference at the moment :)

Cheers,

Bruce

True, I want to use this for configure toolchain properly:

I'm looking at doing the following for when SPE is set:

meta/recipes-devtools/gcc/gcc-common.inc +2 -0
index 7bf036c..409ad01 100644
@@ -12,6 +12,8 @@ FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}"
 def get_gcc_fpu_setting(bb, d):
     if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
         return "--with-float=soft"
+    if bb.data.getVar('TARGET_FPU', d, 1) in [ 'spe' ]:
+        return "--enable-e500_double"
     return ""
 
 
#3 lore raw
Quoted 14 lines · Kumar Gala
Quoted 11 lines · Bruce Ashfield
Quoted 4 lines · Kumar Gala

The MPC8315E has a e300c3 core in it with 'classic' or normal PPC floating point.

'SPE' floating point is what exists on the e500v2 core.

Been meaning to change this for a while, the good news, is that the setting doesn't make any difference at the moment :)

Quoted 7 lines
Quoted 3 lines

Cheers,

Bruce

True, I want to use this for configure toolchain properly:

I'm looking at doing the following for when SPE is set:

Definitely. It was simply good fortune that it hadn't been used yet. And when something like you are doing arrives, we want to have it right. Just to have it right, is a good enough reason!

Cheers,

Bruce

Quoted 13 lines
meta/recipes-devtools/gcc/gcc-common.inc +2 -0
index 7bf036c..409ad01 100644
@@ -12,6 +12,8 @@ FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}"
  def get_gcc_fpu_setting(bb, d):
      if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
          return "--with-float=soft"
+    if bb.data.getVar('TARGET_FPU', d, 1) in [ 'spe' ]:
+        return "--enable-e500_double"
      return ""
 
author
#4 lore raw
In reply to Bruce Ashfield
Quoted 6 lines · Bruce Ashfield
Quoted 4 lines · Kumar Gala

The MPC8315E has a e300c3 core in it with 'classic' or normal PPC floating point.

'SPE' floating point is what exists on the e500v2 core.

Quoted 8 lines

Been meaning to change this for a while, the good news, is that the setting doesn't make any difference at the moment :)

Cheers,

Bruce

ping, this seems to have gotten lost w/regards to getting applied

- k

Quoted 18 lines
Quoted 18 lines
---
 meta-yocto/conf/machine/mpc8315e-rdb.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta-yocto/conf/machine/mpc8315e-rdb.conf +1 -1
index 095d113..3f946a0 100644
@@ -2,7 +2,7 @@
 #@DESCRIPTION: Machine configuration for running
 
 TARGET_ARCH = "powerpc"
-TARGET_FPU = "spe"
+TARGET_FPU = "hard"
 
 require conf/machine/include/tune-ppc603e.inc
 
author
#5 lore raw
In reply to Kumar Gala
Quoted 9 lines · Kumar Gala

The MPC8315E has a e300c3 core in it with 'classic' or normal PPC floating point.

'SPE' floating point is what exists on the e500v2 core.

---
meta-yocto/conf/machine/mpc8315e-rdb.conf | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

Richard,

ping. Bruce has ack'd this.

https://lists.yoctoproject.org/pipermail/yocto/2011-July/001915.html

- k

Quoted 21 lines
meta-yocto/conf/machine/mpc8315e-rdb.conf +0 -0
index 095d113..3f946a0 100644
@@ -2,7 +2,7 @@
 #@DESCRIPTION: Machine configuration for running 
 

TARGET_ARCH = "powerpc"

meta-yocto/conf/machine/mpc8315e-rdb.conf +1 -1
-TARGET_FPU = "spe"
+TARGET_FPU = "hard"

require conf/machine/include/tune-ppc603e.inc

Signature · 6 lines
1.7.3.4

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
#6 lore raw
In reply to Kumar Gala
Quoted 15 lines · Kumar Gala

The MPC8315E has a e300c3 core in it with 'classic' or normal PPC floating point.

'SPE' floating point is what exists on the e500v2 core.

---
  meta-yocto/conf/machine/mpc8315e-rdb.conf |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
meta-yocto/conf/machine/mpc8315e-rdb.conf +0 -0
index 095d113..3f946a0 100644

meta-yocto/conf/machine/mpc8315e-rdb.conf line 8

Quoted 8 lines
meta-yocto/conf/machine/mpc8315e-rdb.conf +1 -1
@@ -2,7 +2,7 @@
  #@DESCRIPTION: Machine configuration for running
 
  TARGET_ARCH = "powerpc"
-TARGET_FPU = "spe"
+TARGET_FPU = "hard"
 
  require conf/machine/include/tune-ppc603e.inc
 

Pulled into Yocto/Master

Thanks
Sau!

#7 lore raw
Quoted 18 lines · Saul Wold
Quoted 17 lines · Kumar Gala

The MPC8315E has a e300c3 core in it with 'classic' or normal PPC floating point.

'SPE' floating point is what exists on the e500v2 core.

---
meta-yocto/conf/machine/mpc8315e-rdb.conf | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
meta-yocto/conf/machine/mpc8315e-rdb.conf +0 -0
index 095d113..3f946a0 100644
@@ -2,7 +2,7 @@
 #@DESCRIPTION: Machine configuration for running
 
Quoted 3 lines

meta-yocto/conf/machine/mpc8315e-rdb.conf line 5

Quoted 3 lines

TARGET_ARCH = "powerpc"

meta-yocto/conf/machine/mpc8315e-rdb.conf +1 -1
-TARGET_FPU = "spe"
+TARGET_FPU = "hard"

This doesn't match the documentation:
./meta/conf/documentation.conf:TARGET_FPU[doc] = "Floating point option (mostly for FPU-less systems), can be 'soft' or empty
The file
meta/classes/icecc.bbclass
seems to be the only place where TARGET_FPU="hard" means anything.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------