e8a055556c4cb24b067a0e118463ce2eaad02171
1 switch (get_field(STATE
.mstatus
, MSTATUS_PRV
))
3 case PRV_U
: throw trap_user_ecall();
4 case PRV_S
: throw trap_supervisor_ecall();
5 case PRV_H
: throw trap_hypervisor_ecall();
6 case PRV_M
: throw trap_machine_ecall();