aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64si/dirty.S
diff options
context:
space:
mode:
Diffstat (limited to 'isa/rv64si/dirty.S')
-rw-r--r--isa/rv64si/dirty.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/isa/rv64si/dirty.S b/isa/rv64si/dirty.S
index fa1581f..8444196 100644
--- a/isa/rv64si/dirty.S
+++ b/isa/rv64si/dirty.S
@@ -14,7 +14,7 @@ RVTEST_RV64M
RVTEST_CODE_BEGIN
# Turn on VM
- li a0, (SPTBR_MODE & ~(SPTBR_MODE<<1)) * SPTBR_MODE_SV39
+ li a0, (SATP_MODE & ~(SATP_MODE<<1)) * SATP_MODE_SV39
la a1, page_table_1
srl a1, a1, RISCV_PGSHIFT
or a1, a1, a0