aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/ecall.h
blob: e298ac722bca931646fe052a85448590aae09e78 (plain)
1
2
3
4
5
6
7
switch (STATE.prv)
{
  case PRV_U: throw trap_user_ecall();
  case PRV_S: throw trap_supervisor_ecall();
  case PRV_M: throw trap_machine_ecall();
  default: abort();
}