[PATCH u-boot] powerpc/mpc85xx: Improve disabling of SPE instructions
Tom Rini
trini at konsulko.com
Fri Dec 23 16:01:16 CET 2022
On Sun, Dec 11, 2022 at 03:14:59PM +0100, Pali Rohár wrote:
> Specifying -mspe=no also disables usage of SPE instructions. It is
> documented in "[PATCH,rs6000] make -mno-spe work as expected" email:
> http://gcc.gnu.org/ml/gcc-patches/2008-04/msg00311.html
>
> So replace -mspe=yes by -mspe=no, so make it clear that u-boot has to be
> compiled without SPE instructions.
>
> Linux kernel contains following Makefile code to achieve it:
>
> # No SPE instruction when building kernel
> # (We use all available options to help semi-broken compilers)
> KBUILD_CFLAGS += $(call cc-option,-mno-spe)
> KBUILD_CFLAGS += $(call cc-option,-mspe=no)
>
> Do same for U-Boot.
>
> Signed-off-by: Pali Rohár <pali at kernel.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20221223/57b96595/attachment.sig>
More information about the U-Boot
mailing list