Reorganized directory structure
[riscv-isa-sim.git] / riscv / insns / eret.h
1 require_supervisor;
2 if(sr & SR_ET)
3 throw trap_illegal_instruction;
4 set_sr(((sr & SR_PS) ? sr : (sr & ~SR_S)) | SR_ET);
5 npc = epc;