Reference: - [RISCV spec](https://riscv.org/technical/specifications/) ## 非特權指令集 最基本的指令集為 `RV32I Base Integer Instruction Set`,分為四個形式:R, I, S, U,之後又有了兩個擴充集:B, J ![](https://hackmd.io/_uploads/BJtfLn0ch.png) ------------------- ## 特權指令集 ### Control and Status Register (CSRs) ### Machine-Level ISA ### Supervisor-Level ISA 這邊著重討論 `supervisor-level` - Supervisor Status Register, `sstatus` ![](https://hackmd.io/_uploads/HJ5Fm_Xs3.png) - `SIE` - `SPIE` - `UBE` - `SPP` - `VS` - `FS` - `XS` - `SUM` - `MXR` - `SD`