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:42:44 +0000 (19:42 +0200)
commit1eb7076056d00faaa1ed1305f5fd67bd45e3944f
tree4ec795468b5dfffc314e8475b6ec8b6b2e0da5a3
parent5c987e57d2780adf5ba371db871054867f935992
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/patches/300-PPC-e500-with-SPE-enabled-use-soft-float.patch [new file with mode: 0644]