aboutsummaryrefslogtreecommitdiff
path: root/debug/programs/mprv.S
diff options
context:
space:
mode:
Diffstat (limited to 'debug/programs/mprv.S')
-rw-r--r--debug/programs/mprv.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/debug/programs/mprv.S b/debug/programs/mprv.S
index a17852a..8ec261e 100644
--- a/debug/programs/mprv.S
+++ b/debug/programs/mprv.S
@@ -8,14 +8,14 @@ main:
# Set up a page table entry that maps 0x0... to 0x8...
la t0, page_table
srli t0, t0, PGSHIFT
- csrw CSR_SPTBR, t0
+ csrw CSR_SATP, t0
# update mstatus
csrr t1, CSR_MSTATUS
#if XLEN == 32
- li t0, (MSTATUS_MPRV | (SPTBR_MODE_SV32 << 24))
+ li t0, (MSTATUS_MPRV | (SATP_MODE_SV32 << 24))
#else
- li t0, (MSTATUS_MPRV | (SPTBR_MODE_SV39 << 24))
+ li t0, (MSTATUS_MPRV | (SATP_MODE_SV39 << 24))
#endif
#li t0, ((VM_SV39 << 24))
or t1, t0, t1