In current implementation, mret jumps back to mepc+4. This is incorrect behavior: mret should jump back to mpec instead. The addition should be performed by exception handler.
This can be fixed by changing PC_UPDATE, though I am unlikely to do that anytime soon.
In current implementation, mret jumps back to mepc+4. This is incorrect behavior: mret should jump back to mpec instead. The addition should be performed by exception handler.
This can be fixed by changing PC_UPDATE, though I am unlikely to do that anytime soon.