Conversation

Jarkko Sakkinen

Huge issue in #riscv specifiations is the lack of pseudocode. E.g. this is from the description of SWI opcode:

"The Wait for Interrupt instruction (WFI) provides a hint to the implementation that the current hart can be stalled until an interrupt might need servicing. Execution of the WFI instruction can also be used to inform the hardware platform that suitable interrupts should preferentially be routed to this hart."

Any ideas what actuallly happens when WFI is executed? I don't know. For x86 I just find the opcode from Intel SDM, and then I just read the pseudocode. I usually do not even read the prose unless really need to get bottom of it.
0
0
2