* [PATCH] powerpc/boot: Fix boot wrapper code generation with CONFIG_POWER10_CPU
@ 2023-04-07 4:09 Nicholas Piggin
2023-04-26 12:01 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Nicholas Piggin @ 2023-04-07 4:09 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Danny Tsen, Nicholas Piggin
-mcpu=power10 will generate prefixed and pcrel code by default, which
we do not support. The general kernel disables these with cflags, but
those were missed for the boot wrapper.
Reported-by: Danny Tsen <dtsen@linux.ibm.com>
Fixes: 4b2a9315f20d9 ("powerpc/64s: POWER10 CPU Kconfig build option")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
arch/powerpc/boot/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index 295f76df13b5..13fad4f0a6d8 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -34,6 +34,8 @@ endif
BOOTCFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -O2 -msoft-float -mno-altivec -mno-vsx \
+ $(call cc-option,-mno-prefixed) $(call cc-option,-mno-pcrel) \
+ $(call cc-option,-mno-mma) \
$(call cc-option,-mno-spe) $(call cc-option,-mspe=no) \
-pipe -fomit-frame-pointer -fno-builtin -fPIC -nostdinc \
$(LINUXINCLUDE)
--
2.40.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] powerpc/boot: Fix boot wrapper code generation with CONFIG_POWER10_CPU
2023-04-07 4:09 [PATCH] powerpc/boot: Fix boot wrapper code generation with CONFIG_POWER10_CPU Nicholas Piggin
@ 2023-04-26 12:01 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2023-04-26 12:01 UTC (permalink / raw)
To: linuxppc-dev, Nicholas Piggin; +Cc: Danny Tsen
On Fri, 07 Apr 2023 14:09:09 +1000, Nicholas Piggin wrote:
> -mcpu=power10 will generate prefixed and pcrel code by default, which
> we do not support. The general kernel disables these with cflags, but
> those were missed for the boot wrapper.
>
>
Applied to powerpc/next.
[1/1] powerpc/boot: Fix boot wrapper code generation with CONFIG_POWER10_CPU
https://git.kernel.org/powerpc/c/648a1783fe2551f5a091c9a5f8f463cb2cbf8745
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-26 12:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-07 4:09 [PATCH] powerpc/boot: Fix boot wrapper code generation with CONFIG_POWER10_CPU Nicholas Piggin
2023-04-26 12:01 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).