]> www.infradead.org Git - users/jedix/linux-maple.git/commit
MIPS: Implement ieee754 NAN2008 emulation mode
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Wed, 12 Jun 2024 08:38:19 +0000 (09:38 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 12 Jul 2024 11:09:25 +0000 (13:09 +0200)
commit59649de96f21dfb0518faa8feaa3d05c2d81b042
tree1d46028b969dcb9453ec73c647f7d8a7a22f1a8a
parent9c7a86c935074525f24cc20e78a7d5150e4600e3
MIPS: Implement ieee754 NAN2008 emulation mode

Implement ieee754 NAN2008 emulation mode.

When this mode is enabled, kernel will accept ELF file
compiled for both NaN 2008 and NaN legacy, but if hardware
does not have capability to match ELF's NaN mode, __own_fpu
will fail for corresponding thread and fpuemu will then kick
in.

This mode trade performance for correctness, while maintaining
support for both NaN mode regardless of hardware capability.
It is useful for multilib installation that have both types
of binary exist in system.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Documentation/admin-guide/kernel-parameters.txt
arch/mips/include/asm/fpu.h
arch/mips/kernel/elf.c
arch/mips/kernel/fpu-probe.c