From 7a51776a830167e43cbd185505f62f328704e271 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 30 Jan 2016 06:28:37 +0000 Subject: gcc, qemuppc: Explicitly disable forcing SPE flags G4 does not have SPE, so we make that explicit in the tune files and since we emulate G4 when building Qemu, we ensure it for qemuppc as well. GCC config for powerpc-linux is made to include SPE by default which is equivalent if the tripet was powerpc-linux*spe, this forces gcc to configure assembler to enable -mspe by default, when we do that then the kernel fails to compile with binutils 2.26, since newer assembler is smart to detect the tlbia instructions are not compatible with SPE and hence the kernel build breaks rightly. We configure the kernel for G4 as well where it enables tlbia instrucitons rightly so because it thinks its being configured for power4. So we keep the options but do not force -mspe down to assembler as default. Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- meta/conf/machine/include/tune-ppc7400.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/conf/machine/include') 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" require conf/machine/include/powerpc/arch-powerpc.inc TUNEVALID[ppc7400] = "Enable ppc7400 specific processor optimizations" -TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'ppc7400', ' -mcpu=7400', '', d)}" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'ppc7400', ' -mcpu=7400 -mno-spe', '', d)}" AVAILTUNES += "ppc7400" TUNE_FEATURES_tune-ppc7400 = "m32 fpu-hard ppc7400 altivec" -- cgit 1.2.3-korg