aboutsummaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-11-27 14:37:58 -0800
committerAndrew Waterman <andrew@sifive.com>2017-11-27 14:37:58 -0800
commit32bf8cb2e7f76736896dc17fcb7996db24ec2320 (patch)
treeb9c4e7b31221303fa8023b5234480c8f292f0785 /benchmarks
parent49f478416cec9f73801fdc5dedf9955494be8c66 (diff)
downloadriscv-tests-32bf8cb2e7f76736896dc17fcb7996db24ec2320.zip
riscv-tests-32bf8cb2e7f76736896dc17fcb7996db24ec2320.tar.gz
riscv-tests-32bf8cb2e7f76736896dc17fcb7996db24ec2320.tar.bz2
Rename sbadaddr to satp
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/pmp/pmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmarks/pmp/pmp.c b/benchmarks/pmp/pmp.c
index c263cfd..195a575 100644
--- a/benchmarks/pmp/pmp.c
+++ b/benchmarks/pmp/pmp.c
@@ -38,12 +38,12 @@ static void init_pt()
l3pt[SCRATCH / RISCV_PGSIZE] = ((uintptr_t)scratch >> RISCV_PGSHIFT << PTE_PPN_SHIFT) | PTE_A | PTE_D | PTE_V | PTE_R | PTE_W;
#if __riscv_xlen == 64
l2pt[0] = ((uintptr_t)l3pt >> RISCV_PGSHIFT << PTE_PPN_SHIFT) | PTE_V;
- uintptr_t vm_choice = SPTBR_MODE_SV39;
+ uintptr_t vm_choice = SATP_MODE_SV39;
#else
- uintptr_t vm_choice = SPTBR_MODE_SV32;
+ uintptr_t vm_choice = SATP_MODE_SV32;
#endif
write_csr(sptbr, ((uintptr_t)l1pt >> RISCV_PGSHIFT) |
- (vm_choice * (SPTBR_MODE & ~(SPTBR_MODE<<1))));
+ (vm_choice * (SATP_MODE & ~(SATP_MODE<<1))));
write_csr(pmpcfg0, (PMP_NAPOT | PMP_R) << 16);
write_csr(pmpaddr2, -1);
}