[PATCH] powerpc/Makefile: Assemble with -me500 when building for E500

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE2941d

2 messages, 2 authors, 2018-07-19 · open the first message on its own page

[PATCH] powerpc/Makefile: Assemble with -me500 when building for E500

From: James Clarke <hidden>
Date: 2018-07-12 21:42:00

Some of the assembly files use instructions specific to BookE or E500,
which are rejected with the now-default -mcpu=powerpc, so we must pass
-me500 to the assembler just as we pass -me200 for E200.

Fixes: 4bf4f42a2feb ("powerpc/kbuild: Set default generic machine type for 32-bit compile")
Signed-off-by: James Clarke <redacted>
---
 arch/powerpc/Makefile | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 2ea575cb..fb96206d 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -243,6 +243,7 @@ endif
 cpu-as-$(CONFIG_4xx)		+= -Wa,-m405
 cpu-as-$(CONFIG_ALTIVEC)	+= $(call as-option,-Wa$(comma)-maltivec)
 cpu-as-$(CONFIG_E200)		+= -Wa,-me200
+cpu-as-$(CONFIG_E500)		+= -Wa,-me500
 cpu-as-$(CONFIG_PPC_BOOK3S_64)	+= -Wa,-mpower4
 cpu-as-$(CONFIG_PPC_E500MC)	+= $(call as-option,-Wa$(comma)-me500mc)
 
-- 
2.18.0

Re: powerpc/Makefile: Assemble with -me500 when building for E500

From: Michael Ellerman <hidden>
Date: 2018-07-19 06:06:09

On Thu, 2018-07-12 at 21:41:49 UTC, James Clarke wrote:
Some of the assembly files use instructions specific to BookE or E500,
which are rejected with the now-default -mcpu=powerpc, so we must pass
-me500 to the assembler just as we pass -me200 for E200.

Fixes: 4bf4f42a2feb ("powerpc/kbuild: Set default generic machine type for 32-bit compile")
Signed-off-by: James Clarke <redacted>
Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/4e4a4b75ccce827f9b8b04b6ee5c90

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help