Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/isa/riscv64/system/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,11 @@ static paddr_t ptw(vaddr_t vaddr, int type) {
if(virt){
pg_base = gpa_stage(pg_base | (vaddr & PAGE_MASK), vaddr, type, type, hlvx, false) & ~PAGE_MASK;
if(pg_base == MEM_RET_FAIL) return MEM_RET_FAIL;
} else {
cpu.pbmt = pte.pbmt;
}
#else
cpu.pbmt = pte.pbmt;
#endif //CONFIG_RVH
#ifndef CONFIG_SHARE
// update a/d by hardware
Expand All @@ -548,8 +552,6 @@ static paddr_t ptw(vaddr_t vaddr, int type) {
}
}
#endif // CONFIG_SHARE

cpu.pbmt = pte.pbmt;
return pg_base | MEM_RET_OK;

bad:
Expand Down