From a06091861c23d5154d750137f5ff3a819a9fa283 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Mon, 27 Nov 2017 14:28:29 -0800 Subject: Rename sptbr to satp --- riscv/mmu.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'riscv/mmu.cc') 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 -- cgit v1.1