Re: [PATCH 0/1] MIPS: fix optimised memset returning garbage

2022-03-10 Thread Antony Pavlov
On Thu, 10 Mar 2022 16:40:39 +0300 Denis Orlov wrote: Hi Denis! I'm very glad to see that you have found this anoying bug! Some tips: * you comment from "PATCH 0/1" is very informative but after applying "PATCH 1/1" to the mainline this very informative comment remain in maillist archive but

[PATCH 0/1] MIPS: fix optimised memset returning garbage

2022-03-10 Thread Denis Orlov
There is currently a bug in memset implementation from arch/mips/lib/memset.S that is used when MIPS_OPTIMIZED_STRING_FUNCTIONS option is enabled. It stems from a missing '.set noreorder' directive before the first branch. This results in an assembler stuffing a 'nop' instruction in a delay slot