aboutsummaryrefslogtreecommitdiff
path: root/riscv/mmu.cc
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-11-27 14:28:29 -0800
committerAndrew Waterman <andrew@sifive.com>2017-11-27 14:28:29 -0800
commita06091861c23d5154d750137f5ff3a819a9fa283 (patch)
tree7e472ed5fe172d8f4ca0b2d753271a29053d55b0 /riscv/mmu.cc
parent160c1a5cee45d3842824af565e52458e2f8b3c48 (diff)
downloadspike-a06091861c23d5154d750137f5ff3a819a9fa283.zip
spike-a06091861c23d5154d750137f5ff3a819a9fa283.tar.gz
spike-a06091861c23d5154d750137f5ff3a819a9fa283.tar.bz2
Rename sptbr to satp
Diffstat (limited to 'riscv/mmu.cc')
-rw-r--r--riscv/mmu.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/mmu.cc b/riscv/mmu.cc
index 54b5b1d..5f054db 100644
--- a/riscv/mmu.cc
+++ b/riscv/mmu.cc
@@ -159,7 +159,7 @@ tlb_entry_t mmu_t::refill_tlb(reg_t vaddr, reg_t paddr, char* host_addr, access_
reg_t mmu_t::walk(reg_t addr, access_type type, reg_t mode)
{
- vm_info vm = decode_vm_info(proc->max_xlen, mode, proc->get_state()->sptbr);
+ vm_info vm = decode_vm_info(proc->max_xlen, mode, proc->get_state()->satp);
if (vm.levels == 0)
return addr & ((reg_t(2) << (proc->xlen-1))-1); // zero-extend from xlen