xret instruction at lower privilege level

38 views
Skip to first unread message

Aylin Hannah

unread,
Feb 15, 2018, 9:34:36 AM2/15/18
to RISC-V SW Dev
Hi,
Will an XRET instruction meant for higher privilege level being executed from lower privilege cause an illegal instruction exception? For example if in supervisor mode  MRET instruction is encountered?
Thanks
-Parvez

Samuel Falvo II

unread,
Feb 15, 2018, 12:03:05 PM2/15/18
to Aylin Hannah, RISC-V SW Dev
Yes; this will cause an illegal instruction exception.
> --
> You received this message because you are subscribed to the Google Groups
> "RISC-V SW Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sw-dev+un...@groups.riscv.org.
> To post to this group, send email to sw-...@groups.riscv.org.
> Visit this group at
> https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
> To view this discussion on the web visit
> https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/CAN5ow1Aigrh5HjSwMwmioZ0hOQ7s_tNqRoFtsi-uL4N8SK2mtQ%40mail.gmail.com.



--
Samuel A. Falvo II
Reply all
Reply to author
Forward
0 new messages