aboutsummaryrefslogtreecommitdiff
path: root/riscv/mmu.cc
diff options
context:
space:
mode:
authorScott Johnson <scott.johnson@arilinc.com>2021-09-20 14:50:08 -0700
committerScott Johnson <scott.johnson@arilinc.com>2021-09-25 23:50:54 -0700
commit3b3fbe6db65b2e7404b05cddd3b795cdf530398e (patch)
treeabe4fb7edbc10a247efedcb5fc62c4d7a7255934 /riscv/mmu.cc
parent25b0e3fb49544ba2ee9a9374d603567d0549b4ac (diff)
downloadspike-3b3fbe6db65b2e7404b05cddd3b795cdf530398e.zip
spike-3b3fbe6db65b2e7404b05cddd3b795cdf530398e.tar.gz
spike-3b3fbe6db65b2e7404b05cddd3b795cdf530398e.tar.bz2
Convert hgatp to csr_t
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 8cedd44..906694c 100644
--- a/riscv/mmu.cc
+++ b/riscv/mmu.cc
@@ -263,7 +263,7 @@ reg_t mmu_t::s2xlate(reg_t gva, reg_t gpa, access_type type, access_type trap_ty
if (!virt)
return gpa;
- vm_info vm = decode_vm_info(proc->get_const_xlen(), true, 0, proc->get_state()->hgatp);
+ vm_info vm = decode_vm_info(proc->get_const_xlen(), true, 0, proc->get_state()->hgatp->read());
if (vm.levels == 0)
return gpa;