Patchwork [meta-xilinx] tune-ppc440.inc: Update support for the PowerPC 440 processor in the Xilinx Virtex-5 FXT FPGA.

login
register
mail settings
Submitter Elvis Dowson
Date May 31, 2012, 6:23 a.m.
Message ID <1338445392-39723-1-git-send-email-elvis.dowson@gmail.com>
Download mbox | patch
Permalink /patch/28983/
State Superseded
Headers show

Comments

Elvis Dowson - May 31, 2012, 6:23 a.m.
This commit updates support for the PowerPC 440 processor in the Xilinx
Virtex-5 FXT FPGA.

Signed-off-by: Elvis Dowson <elvis.dowson@gmail.com>
---
 conf/machine/include/tune-ppc440.inc |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Adrian Alonso - May 31, 2012, 3:15 p.m.
Hi Elvis,

Please update your meta-xilinx repo,
commit: 04633e44b5401288ceee2d36eb2413dfa5308a54
does something similar, but I fail to use "powerpc-nf"

I would accept a new patch for that :)

Regards
Adrian Alonso

On Thu, May 31, 2012 at 1:23 AM, Elvis Dowson <elvis.dowson@gmail.com> wrote:
> This commit updates support for the PowerPC 440 processor in the Xilinx
> Virtex-5 FXT FPGA.
>
> Signed-off-by: Elvis Dowson <elvis.dowson@gmail.com>
> ---
>  conf/machine/include/tune-ppc440.inc |   10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/conf/machine/include/tune-ppc440.inc b/conf/machine/include/tune-ppc440.inc
> index f77f628..394364d 100644
> --- a/conf/machine/include/tune-ppc440.inc
> +++ b/conf/machine/include/tune-ppc440.inc
> @@ -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)}"
> --
> 1.7.9.5
>
Elvis Dowson - May 31, 2012, 4:53 p.m.
Hi Adrian,

On May 31, 2012, at 5:15 PM, Adrian Alonso wrote:

> Please update your meta-xilinx repo,
> commit: 04633e44b5401288ceee2d36eb2413dfa5308a54
> does something similar, but I fail to use "powerpc-nf"
> 
> I would accept a new patch for that :)

Done! :-)

Best regards,

Elvis Dowson
Adrian Alonso - June 1, 2012, 4:18 a.m.
Applied

Thanks

On Thu, May 31, 2012 at 11:53 AM, Elvis Dowson <elvis.dowson@gmail.com> wrote:
> Hi Adrian,
>
> On May 31, 2012, at 5:15 PM, Adrian Alonso wrote:
>
>> Please update your meta-xilinx repo,
>> commit: 04633e44b5401288ceee2d36eb2413dfa5308a54
>> does something similar, but I fail to use "powerpc-nf"
>>
>> I would accept a new patch for that :)
>
> Done! :-)
>
> Best regards,
>
> Elvis Dowson
>

Patch

diff --git a/conf/machine/include/tune-ppc440.inc b/conf/machine/include/tune-ppc440.inc
index f77f628..394364d 100644
--- a/conf/machine/include/tune-ppc440.inc
+++ b/conf/machine/include/tune-ppc440.inc
@@ -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)}"