diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-03-30 00:19:11 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-03-30 00:19:11 -0700 |
commit | 3f1d04a2e8f849c306bdca7c7115462c3a60a6e0 (patch) | |
tree | 41d32c2cb2d3bfbe9cc23504302471d92310ab12 /v/vm.c | |
parent | f17553f93d126eda4f543739d26d754e5867e7a2 (diff) | |
download | env-3f1d04a2e8f849c306bdca7c7115462c3a60a6e0.zip env-3f1d04a2e8f849c306bdca7c7115462c3a60a6e0.tar.gz env-3f1d04a2e8f849c306bdca7c7115462c3a60a6e0.tar.bz2 |
New PMP encoding
Diffstat (limited to 'v/vm.c')
-rw-r--r-- | v/vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -234,7 +234,7 @@ void vm_boot(uintptr_t test_addr) (vm_choice * (SPTBR_MODE & ~(SPTBR_MODE<<1)))); // Set up PMPs if present, ignoring illegal instruction trap if not. - uintptr_t pmpc = PMP_EN | PMP_NAPOT | PMP_M | PMP_R | PMP_W | PMP_X; + uintptr_t pmpc = PMP_NAPOT | PMP_R | PMP_W | PMP_X; asm volatile ("la t0, 1f\n\t" "csrrw t0, mtvec, t0\n\t" "csrw pmpaddr0, %1\n\t" |