[RFC v2 1/2] riscv: allow resume after exception