diff options
author | Ved Shanbhogue <ved@rivosinc.com> | 2023-08-14 12:44:57 -0500 |
---|---|---|
committer | Ved Shanbhogue <ved@rivosinc.com> | 2023-08-14 12:44:57 -0500 |
commit | 07c2e2bfcbeae79f5bda72146d8d5652a40f8861 (patch) | |
tree | f9f6c11d07cc4fecd2dbe4a3e5ffd59727c27839 /riscv/mmu.cc | |
parent | ec3c9357ec58bdd2522eef3d7768b9276ab96b0c (diff) | |
download | riscv-isa-sim-07c2e2bfcbeae79f5bda72146d8d5652a40f8861.zip riscv-isa-sim-07c2e2bfcbeae79f5bda72146d8d5652a40f8861.tar.gz riscv-isa-sim-07c2e2bfcbeae79f5bda72146d8d5652a40f8861.tar.bz2 |
rename *envcfg.HADE to *envcfg.ADUE
Diffstat (limited to 'riscv/mmu.cc')
-rw-r--r-- | riscv/mmu.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/mmu.cc b/riscv/mmu.cc index f6d23a3..285ef6d 100644 --- a/riscv/mmu.cc +++ b/riscv/mmu.cc @@ -413,7 +413,7 @@ reg_t mmu_t::s2xlate(reg_t gva, reg_t gpa, access_type type, access_type trap_ty reg_t pte = pte_load(pte_paddr, gva, virt, trap_type, vm.ptesize); reg_t ppn = (pte & ~reg_t(PTE_ATTR)) >> PTE_PPN_SHIFT; bool pbmte = proc->get_state()->menvcfg->read() & MENVCFG_PBMTE; - bool hade = proc->get_state()->menvcfg->read() & MENVCFG_HADE; + bool hade = proc->get_state()->menvcfg->read() & MENVCFG_ADUE; if (pte & PTE_RSVD) { break; @@ -507,7 +507,7 @@ reg_t mmu_t::walk(mem_access_info_t access_info) reg_t pte = pte_load(pte_paddr, addr, virt, type, vm.ptesize); reg_t ppn = (pte & ~reg_t(PTE_ATTR)) >> PTE_PPN_SHIFT; bool pbmte = virt ? (proc->get_state()->henvcfg->read() & HENVCFG_PBMTE) : (proc->get_state()->menvcfg->read() & MENVCFG_PBMTE); - bool hade = virt ? (proc->get_state()->henvcfg->read() & HENVCFG_HADE) : (proc->get_state()->menvcfg->read() & MENVCFG_HADE); + bool hade = virt ? (proc->get_state()->henvcfg->read() & HENVCFG_ADUE) : (proc->get_state()->menvcfg->read() & MENVCFG_ADUE); if (pte & PTE_RSVD) { break; |