Re: [PATCH v5 2/3] Skip NaN mode check for soft-float

2025-04-05 Thread Aleksandar Rakic
Hi, If ieee754 equals EMULATED, then the variables mips_use_nan_2008 and mips_use_nan_legacy are set to true ( https://elixir.bootlin.com/linux/v6.13.6/source/arch/mips/kernel/fpu-probe.c#L208 ) and any binaries are accepted regardless of whether supported by the FPU ( https://elixir.bootlin.com

Re: [PATCH v5 2/3] Skip NaN mode check for soft-float

2025-04-04 Thread Aleksandar Rakic
Hi, The soft(-float) requirement means that the program being loaded has no FPU dependency at all (i.e. it has no FPU instructions). https://elixir.bootlin.com/linux/v6.13.6/source/arch/mips/kernel/elf.c#L34 When -msoft-float is used, the processor does not use hardware floating-point instruction

Re: [PATCH v5 2/3] Skip NaN mode check for soft-float

2025-04-04 Thread Peter Maydell
On Tue, 18 Mar 2025 at 13:00, Aleksandar Rakic wrote: > The soft(-float) requirement means that the program being loaded has no > FPU dependency at all (i.e. it has no FPU instructions). > https://elixir.bootlin.com/linux/v6.13.6/source/arch/mips/kernel/elf.c#L34 Yes, I know. But the kernel loade

Re: [PATCH v5 2/3] Skip NaN mode check for soft-float

2025-03-18 Thread Aleksandar Rakic
Thank you. Kind regards, Aleksandar Rakic

Re: [PATCH v5 2/3] Skip NaN mode check for soft-float

2025-03-18 Thread Peter Maydell
On Tue, 18 Mar 2025 at 11:31, Aleksandar Rakic wrote: > > Hi, > > If ieee754 equals EMULATED, then the variables mips_use_nan_2008 and > mips_use_nan_legacy are set to true > ( > https://elixir.bootlin.com/linux/v6.13.6/source/arch/mips/kernel/fpu-probe.c#L208 > ) > and any binaries are accepted

Re: [PATCH v5 2/3] Skip NaN mode check for soft-float

2025-03-12 Thread Peter Maydell
On Wed, 26 Feb 2025 at 17:03, Aleksandar Rakic wrote: > > From: Aleksandar Rakic > > Skip NaN mode check for soft-float since NaN mode is irrelevant if an ELF > binary's FPU mode is soft-float, i.e. it doesn't utilize a FPU. > > Cherry-picked 63492a56485f6b755fccf7ad623f7a189bfc79b6 > from https:

Re: [PATCH v5 2/3] Skip NaN mode check for soft-float

2025-03-12 Thread Aleksandar Rakic
Hi, Could you please let us know if you have any comments on the latest version of this patch? Kind regards, Aleksandar Rakic

[PATCH v5 2/3] Skip NaN mode check for soft-float

2025-02-26 Thread Aleksandar Rakic
From: Aleksandar Rakic Skip NaN mode check for soft-float since NaN mode is irrelevant if an ELF binary's FPU mode is soft-float, i.e. it doesn't utilize a FPU. Cherry-picked 63492a56485f6b755fccf7ad623f7a189bfc79b6 from https://github.com/MIPS/gnutools-qemu Signed-off-by: Faraz Shahbazker Sig