summaryrefslogtreecommitdiff
path: root/p/riscv_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'p/riscv_test.h')
-rw-r--r--p/riscv_test.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/p/riscv_test.h b/p/riscv_test.h
index 52d7fe9..e28c5e5 100644
--- a/p/riscv_test.h
+++ b/p/riscv_test.h
@@ -58,9 +58,9 @@
csrw mtvec, t0; \
csrwi sptbr, 0; \
li t0, -1; /* Set up a PMP to permit all accesses */ \
- csrw CSR_PMPADDR0, t0; \
+ csrw pmpaddr0, t0; \
li t0, PMP_EN | PMP_NAPOT | PMP_M | PMP_R | PMP_W | PMP_X; \
- csrw CSR_PMPCFG0, t0; \
+ csrw pmpcfg0, t0; \
1:
#define RVTEST_ENABLE_SUPERVISOR \