aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/wfi.h
blob: 6504b78c608b0cf192df1bfd8592cb799389ff42 (plain)
1
2
require_privilege(get_field(STATE.mstatus, MSTATUS_TW) ? PRV_M : PRV_S);
wfi();