I develop for HiFive1 Rev.B.
I try to use user mode.
Following simple code
la a0, user_entry
csrw mepc, a0 // user_entry
li a0, 0x00000080
csrw mstatus, a0
ret <-- Instruction access fault
I run J-link + ozone debugger.
When single step running, ret instruction is success.
But, when execute RUN, exception occured.
mcause is Instruction access fault.
mepc/mtval is located on ret-instruction.
I try to disable PMP, but same.
How to run on user mode program?