diff options
3 files changed, 19 insertions, 9 deletions
diff --git a/meta/conf/machine/include/tune-ppc7400.inc b/meta/conf/machine/include/tune-ppc7400.inc index 8bfda56c25..425e8bd215 100644 --- a/meta/conf/machine/include/tune-ppc7400.inc +++ b/meta/conf/machine/include/tune-ppc7400.inc | |||
| @@ -3,7 +3,7 @@ DEFAULTTUNE ?= "ppc7400" | |||
| 3 | require conf/machine/include/powerpc/arch-powerpc.inc | 3 | require conf/machine/include/powerpc/arch-powerpc.inc |
| 4 | 4 | ||
| 5 | TUNEVALID[ppc7400] = "Enable ppc7400 specific processor optimizations" | 5 | TUNEVALID[ppc7400] = "Enable ppc7400 specific processor optimizations" |
| 6 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'ppc7400', ' -mcpu=7400', '', d)}" | 6 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'ppc7400', ' -mcpu=7400 -mno-spe', '', d)}" |
| 7 | 7 | ||
| 8 | AVAILTUNES += "ppc7400" | 8 | AVAILTUNES += "ppc7400" |
| 9 | TUNE_FEATURES_tune-ppc7400 = "m32 fpu-hard ppc7400 altivec" | 9 | TUNE_FEATURES_tune-ppc7400 = "m32 fpu-hard ppc7400 altivec" |
diff --git a/meta/conf/machine/qemuppc.conf b/meta/conf/machine/qemuppc.conf index 85cbbf798d..bf0038ddba 100644 --- a/meta/conf/machine/qemuppc.conf +++ b/meta/conf/machine/qemuppc.conf | |||
| @@ -5,6 +5,8 @@ | |||
| 5 | require conf/machine/include/qemu.inc | 5 | require conf/machine/include/qemu.inc |
| 6 | require conf/machine/include/tune-ppc7400.inc | 6 | require conf/machine/include/tune-ppc7400.inc |
| 7 | 7 | ||
| 8 | TARGET_CC_KERNEL_ARCH = "-mno-spe" | ||
| 9 | |||
| 8 | KERNEL_IMAGETYPE = "vmlinux" | 10 | KERNEL_IMAGETYPE = "vmlinux" |
| 9 | 11 | ||
| 10 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1" | 12 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1" |
diff --git a/meta/recipes-devtools/gcc/gcc-5.3/0030-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch b/meta/recipes-devtools/gcc/gcc-5.3/0030-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch index e7ca360ae5..57051871b3 100644 --- a/meta/recipes-devtools/gcc/gcc-5.3/0030-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch +++ b/meta/recipes-devtools/gcc/gcc-5.3/0030-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch | |||
| @@ -19,11 +19,11 @@ Signed-off-by: Alexandru-Cezar Sardan <alexandru.sardan@freescale.com> | |||
| 19 | gcc/config.gcc | 9 ++++++++- | 19 | gcc/config.gcc | 9 ++++++++- |
| 20 | 1 file changed, 8 insertions(+), 1 deletion(-) | 20 | 1 file changed, 8 insertions(+), 1 deletion(-) |
| 21 | 21 | ||
| 22 | diff --git a/gcc/config.gcc b/gcc/config.gcc | 22 | Index: gcc-5.3.0/gcc/config.gcc |
| 23 | index dd0739d..3825bd5 100644 | 23 | =================================================================== |
| 24 | --- a/gcc/config.gcc | 24 | --- gcc-5.3.0.orig/gcc/config.gcc |
| 25 | +++ b/gcc/config.gcc | 25 | +++ gcc-5.3.0/gcc/config.gcc |
| 26 | @@ -2343,7 +2343,14 @@ powerpc-*-rtems*) | 26 | @@ -2346,7 +2346,14 @@ powerpc-*-rtems*) |
| 27 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-rtems rs6000/t-ppccomm" | 27 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-rtems rs6000/t-ppccomm" |
| 28 | ;; | 28 | ;; |
| 29 | powerpc*-*-linux*) | 29 | powerpc*-*-linux*) |
| @@ -39,6 +39,14 @@ index dd0739d..3825bd5 100644 | |||
| 39 | extra_options="${extra_options} rs6000/sysv4.opt" | 39 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 40 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm" | 40 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm" |
| 41 | extra_objs="$extra_objs rs6000-linux.o" | 41 | extra_objs="$extra_objs rs6000-linux.o" |
| 42 | -- | 42 | Index: gcc-5.3.0/gcc/config/rs6000/linuxspe.h |
| 43 | 2.6.3 | 43 | =================================================================== |
| 44 | 44 | --- gcc-5.3.0.orig/gcc/config/rs6000/linuxspe.h | |
| 45 | +++ gcc-5.3.0/gcc/config/rs6000/linuxspe.h | ||
| 46 | @@ -27,6 +27,3 @@ | ||
| 47 | #undef TARGET_DEFAULT | ||
| 48 | #define TARGET_DEFAULT MASK_STRICT_ALIGN | ||
| 49 | #endif | ||
| 50 | - | ||
| 51 | -#undef ASM_DEFAULT_SPEC | ||
| 52 | -#define ASM_DEFAULT_SPEC "-mppc -mspe -me500" | ||
