1 parent ebff2c2 commit 32d18b6Copy full SHA for 32d18b6
1 file changed
src/csr.rs
@@ -189,6 +189,7 @@ impl State {
189
pub fn new() -> Self {
190
let mut csrs = [0; CSR_SIZE];
191
let misa: u64 = (2 << 62) | // MXL[1:0]=2 (XLEN is 64)
192
+ (1 << 20) | // Extensions[20] (User mode implemented)
193
(1 << 18) | // Extensions[18] (Supervisor mode implemented)
194
(1 << 12) | // Extensions[12] (Integer Multiply/Divide extension)
195
(1 << 8) | // Extensions[8] (RV32I/64I/128I base ISA)
0 commit comments