| ▲ | direwolf20 4 hours ago | ||||||||||||||||
When you have a known hardware bug like needing a nop after every mul, compilers can do this. You don't need to turn off mul entirely. | |||||||||||||||||
| ▲ | 0xTJ 4 hours ago | parent [-] | ||||||||||||||||
The issue is that it's no longer actually RISC-V M at the point, you're changing the instruction set. If you're compiling RISC-V M code, that doesn't need the extra NOP. That being said, the disabling of MUL is being done at a software project level here, not by the CPU vendor. It's in the same linked commit that added in the NOP instructions to the arithmetic routines. | |||||||||||||||||
| |||||||||||||||||