summaryrefslogtreecommitdiff
path: root/p/riscv_test.h
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-03-30 00:19:11 -0700
committerAndrew Waterman <andrew@sifive.com>2017-03-30 00:19:11 -0700
commit3f1d04a2e8f849c306bdca7c7115462c3a60a6e0 (patch)
tree41d32c2cb2d3bfbe9cc23504302471d92310ab12 /p/riscv_test.h
parentf17553f93d126eda4f543739d26d754e5867e7a2 (diff)
downloadenv-3f1d04a2e8f849c306bdca7c7115462c3a60a6e0.zip
env-3f1d04a2e8f849c306bdca7c7115462c3a60a6e0.tar.gz
env-3f1d04a2e8f849c306bdca7c7115462c3a60a6e0.tar.bz2
New PMP encoding
Diffstat (limited to 'p/riscv_test.h')
-rw-r--r--p/riscv_test.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/p/riscv_test.h b/p/riscv_test.h
index 708bc4d..baad787 100644
--- a/p/riscv_test.h
+++ b/p/riscv_test.h
@@ -58,7 +58,7 @@
csrw mtvec, t0; \
li t0, -1; /* Set up a PMP to permit all accesses */ \
csrw pmpaddr0, t0; \
- li t0, PMP_EN | PMP_NAPOT | PMP_M | PMP_R | PMP_W | PMP_X; \
+ li t0, PMP_NAPOT | PMP_R | PMP_W | PMP_X; \
csrw pmpcfg0, t0; \
.align 2; \
1: