misa is stored in the hart now, not the target
[riscv-tests.git] / debug / programs / mprv.S
index 574f32e62a562a69732dd74af4903f6bf6baa841..a17852a03ff8cc9ad603cdb7b5d547c04579c5f1 100644 (file)
@@ -1,4 +1,4 @@
-#include "../../env/encoding.h"
+#include "encoding.h"
 #define PGSHIFT         12
 
         .global         main
@@ -13,9 +13,9 @@ main:
         # update mstatus
         csrr    t1, CSR_MSTATUS
 #if XLEN == 32
-        li      t0, (MSTATUS_MPRV | (VM_SV32 << 24))
+        li      t0, (MSTATUS_MPRV | (SPTBR_MODE_SV32 << 24))
 #else
-        li      t0, (MSTATUS_MPRV | (VM_SV39 << 24))
+        li      t0, (MSTATUS_MPRV | (SPTBR_MODE_SV39 << 24))
 #endif
         #li      t0, ((VM_SV39 << 24))
         or      t1, t0, t1