luajit: patch: PPC/e500 SPE: use soft float instead of failing
authorŠimon Bořek <simon.borek@nic.cz>
Sat, 16 Jul 2022 16:56:32 +0000 (18:56 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Sat, 6 Aug 2022 17:44:06 +0000 (19:44 +0200)
commitf81c55e870d38841d92184c7b853d7a5ae56c8d8
tree981c427457d5e50c39aada674004edc35d9e43c3
parente2ce67c8d42cdefa26fa3b1b036a13b80e5d6706
luajit: patch: PPC/e500 SPE: use soft float instead of failing

makes LuaJit builds for mpc85xx targets with SPE ISA extension
enabled possible

Quoting inner commit message:

This allows building LuaJit for systems with Power ISA SPE
extension[^1] support by using soft float on LuaJit side.

While e500 CPU cores support SPE instruction set extension
allowing them to perform floating point arithmetic natively,
this isn't required. They can function with software floating
point to integer arithmetic translation as well,
just like FPU-less PowerPC CPUs without SPE support.

Therefore I see no need to prevent them from running LuaJit
explicitly.

[^1]: https://www.nxp.com/docs/en/reference-manual/SPEPEM.pdf

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Šimon Bořek <simon.borek@nic.cz>
(cherry picked from commit a4a484fbca5c185456cf5ac26e6f47c03ca426e9)
lang/luajit/Makefile
lang/luajit/patches/300-PPC-e500-with-SPE-enabled-use-soft-float.patch [new file with mode: 0644]