#RISCV "Wait for Interrupt instruction (WFI) provides a hint to the implementation that the current hart can be stalled until an interrupt ... so a legal implementation is to simply implement WFI as a NOP" 🤔
Source: https://github.com/riscv/riscv-isa-manual/releases/download/Priv-v1.12/riscv-privileged-20211203.pdf
@lupyuen ...what's wrong with that?
@exa I have some code that assumes WFI will loop forever. I suppose that's incorrect 🤔
@lupyuen anyway I guess fixing this with 1 extra instruction that loops forever over the WFI is quite valid. I assume your interrupt handler will be able to jump over that, right?