Skip to contentSkip to conversation

tune-ppc440.inc: Add support for PowerPC 440 processor for Xilinx Virtex-5 FXT FPGA.

meta-xilinx Elvis Dowson 3 participants 4 messages May 30, 2012 – May 31, 2012

lore
Share & tools
lore
#0 lore raw

This commit adds support for the PowerPC 440 processor for the Xilinx Virtex-5 FXT FPGA.

---
 meta/conf/machine/include/tune-ppc440.inc |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-ppc440.inc
meta/conf/machine/include/tune-ppc440.inc new file +14 -0
new file mode 100644
index 0000000..394364d
@@ -0,0 +1,14 @@
+DEFAULTTUNE ?= "ppc440"
+
+require conf/machine/include/powerpc/arch-powerpc.inc
+
+TUNEVALID[ppc440] = "Enable ppc440 specific processor optimizations"
+TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "-mcpu=440", "", d)}"
+
+AVAILTUNES += "ppc440"
+TUNE_FEATURES_tune-ppc440 = "m32 fpu-soft ppc440"
+TUNE_PKGARCH_tune-ppc440 = "ppc440"
+PACKAGE_EXTRA_ARCHS_tune-ppc440 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} ppc440"
+
+# glibc configure options to get 440 specific library (for sqrt)
+GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "-with-cpu=440", "", d)}"
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 3 lines · Elvis Dowson

This commit adds support for the PowerPC 440 processor for the Xilinx Virtex-5 FXT FPGA.

this looks ok to me

Quoted 34 lines
---
 meta/conf/machine/include/tune-ppc440.inc |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-ppc440.inc
meta/conf/machine/include/tune-ppc440.inc new file +14 -0
new file mode 100644
index 0000000..394364d
@@ -0,0 +1,14 @@
+DEFAULTTUNE ?= "ppc440"
+
+require conf/machine/include/powerpc/arch-powerpc.inc
+
+TUNEVALID[ppc440] = "Enable ppc440 specific processor optimizations"
+TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "-mcpu=440", "", d)}"
+
+AVAILTUNES += "ppc440"
+TUNE_FEATURES_tune-ppc440 = "m32 fpu-soft ppc440"
+TUNE_PKGARCH_tune-ppc440 = "ppc440"
+PACKAGE_EXTRA_ARCHS_tune-ppc440 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} ppc440"
+
+# glibc configure options to get 440 specific library (for sqrt)
+GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "-with-cpu=440", "", d)}"
Signature · 7 lines
1.7.9.5


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
-Khem
#2 lore raw

Hi Elvis,

the tune file its ok, but it should be better if you rather provide a fix for the tune-ppc440.inc
that is part of meta-xilinx layer;

Regards
Adrian Alonso

Quoted 51 lines · Khem Raj
Quoted 3 lines · Elvis Dowson

This commit adds support for the PowerPC 440 processor for the Xilinx Virtex-5 FXT FPGA.

this looks ok to me

Quoted 30 lines

---
 meta/conf/machine/include/tune-ppc440.inc |   14 ++++++++++++++

 1 file changed, 14 insertions(+)

 create mode 100644 meta/conf/machine/include/tune-ppc440.inc

meta/conf/machine/include/tune-ppc440.inc new file +14 -1
new file mode 100644
index 0000000..394364d
@@ -0,0 +1,14 @@
+DEFAULTTUNE ?= "ppc440"
+
+require conf/machine/include/powerpc/arch-powerpc.inc
+
+TUNEVALID[ppc440] = "Enable ppc440 specific processor optimizations"
+TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "-mcpu=440", "", d)}"
+
+AVAILTUNES += "ppc440"
+TUNE_FEATURES_tune-ppc440 = "m32 fpu-soft ppc440"
+TUNE_PKGARCH_tune-ppc440 = "ppc440"
+PACKAGE_EXTRA_ARCHS_tune-ppc440 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} ppc440"
+
+# glibc configure options to get 440 specific library (for sqrt)
+GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "-with-cpu=440", "", d)}"
--

1.7.9.5

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

--
-Khem

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 3 lines
Saludos
Adrian Alonso
http://aalonso.wordpress.com
#3 lore raw

Hi Adrian,

Quoted 3 lines · Adrian Alonso

the tune file its ok, but it should be better if you rather provide a fix for the tune-ppc440.inc
that is part of meta-xilinx layer;

Here is a diff against the existing tune-ppc440.inc file in the meta-xilinx layer. I'll submit a patch shortly.

conf/machine/include/tune-ppc440.inc +5 -5
index f77f628..394364d 100644
@@ -4,11 +4,11 @@ require conf/machine/include/powerpc/arch-powerpc.inc
 
 TUNEVALID[ppc440] = "Enable ppc440 specific processor optimizations"
 TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "-mcpu=440", "", d)}"
-TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "ppc440", "${PPCPKGARCH}", d)}"
 
-TARGET_FPU = "soft"
 AVAILTUNES += "ppc440"
-TUNE_FEATURES_tune-ppc440 = "m32 ppc440"
-PACKAGE_EXTRA_ARCHS_tune-ppc440 = "ppc440"
+TUNE_FEATURES_tune-ppc440 = "m32 fpu-soft ppc440"
+TUNE_PKGARCH_tune-ppc440 = "ppc440"
+PACKAGE_EXTRA_ARCHS_tune-ppc440 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} ppc440"
 
-#MACHINEOVERRIDES .= "ppc440"
+# glibc configure options to get 440 specific library (for sqrt)
+GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "-with-cpu=440", "", d)}"

Best regards,

Elvis Dowson