Use RELAXED ieee754 mode for Loongson-3 as 3A 4000 is 2008-only
authorYunQiang Su <syq@debian.org>
Mon, 16 Nov 2020 01:11:00 +0000 (09:11 +0800)
committerSalvatore Bonaccorso <carnil@debian.org>
Tue, 6 May 2025 19:33:52 +0000 (21:33 +0200)
commit901115431a80da9526df2e24f5305fb5a8e41be7
tree1e6286fd450248b6a0b05b92d7d49f1797b6439e
parent2a5fdfb1da3be8d207326a2cb9eb5d4e7e3264ee
Use RELAXED ieee754 mode for Loongson-3 as 3A 4000 is 2008-only

Forwarded: not-needed

There are 2 mode of value of IEEE NaN hardcoded by CPU.
Currently, our mipsel/mips64el port is in so-called lagacy mode.
Loongson 3A 4000 is set as the so-called 2008 mode.

To make Debian workable on Loongson 3A 4000, we need set the kerenl in
RELAXED mode.

https://web.archive.org/web/20180830093617/https://dmz-portal.mips.com/wiki/MIPS_ABI_-_NaN_Interlinking

[bwh: Update for addition of EMULATED mode in 6.11]

Gbp-Pq: Topic debian
Gbp-Pq: Name mips-ieee754-relaxed.patch
arch/mips/kernel/fpu-probe.c