update the content in int.md

This commit is contained in:
Yan_yan 2020-11-10 18:01:02 +08:00
parent 43457fa0ea
commit cf24611d7f
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ mcause寄存器的Exception Code域标识是何种异常或者何种中断。定
| 0<br/>0<br/>0<br/>0<br/>0<br/>0<br/>0<br/>0<br/>0<br/>0<br/>0<br/>0<br/>0<br/>0 | 0<br/>1<br/>2<br/>3<br/>4<br/>5<br/>6<br/>7<br/>8<br/>9<br/>11<br/>12<br/>13<br/>15 | Intruction address misaligned<br/>Instruction access fault<br/>Illegal instruction<br/>Breakpoint<br/>Load address misaligned<br/>Load access fault<br/>store address misaligned<br/>Store access fault<br/>Environment call from U-mode<br/>Environment call from S-mode<br/>Environment call from M-mode<br/>Instruction page fault<br/>Load page fault<br/>Store page fault |
+ 退出异常时需要从异常服务程序中退出并返回主程序。RISC-V架构定义了一组专images门的退出异常指令MRET、SRET、URET分别对应机器模式、监督模式、用户模式的退出。
+ 退出异常时需要从异常服务程序中退出并返回主程序。RISC-V架构定义了一组专门的退出异常指令MRET、SRET、URET分别对应机器模式、监督模式、用户模式的退出。
以MRET为例当处理器执行MRET指令后硬件行为如下
1、当前程序执行流程停止执行跳转到mepc的地址运行
2、更新mstatus状态寄存器(具体情况可参考RISC-V架构介绍)