aboutsummaryrefslogtreecommitdiff
path: root/riscv/mmu.cc
diff options
context:
space:
mode:
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 b2c8c98..489aeee 100644
--- a/riscv/mmu.cc
+++ b/riscv/mmu.cc
@@ -53,7 +53,7 @@ void* mmu_t::refill(reg_t addr, bool store, bool fetch)
tlb_insn_tag[idx] = (pte_perm & PTE_UX) ? expected_tag : -1;
tlb_data[idx] = (long)(pte >> PTE_PPN_SHIFT << PGSHIFT) + (long)mem;
- return (void*)(((long)addr & (PGSIZE-1)) | tlb_data[idx]);
+ return (void*)(((long)addr & (PGSIZE-1)) + tlb_data[idx]);
}
pte_t mmu_t::walk(reg_t addr)