Skip to content

Commit 71bdc3b

Browse files
committed
pointer masking: Pointer masking does not apply when MXR=1 regardless of MPRV in v1.0.0-rc2
Reference: riscv/riscv-j-extension#70
1 parent 1b80449 commit 71bdc3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv/mmu.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ void mmu_t::register_memtracer(memtracer_t* t)
614614
}
615615

616616
reg_t mmu_t::get_pmlen(bool effective_virt, reg_t effective_priv, xlate_flags_t flags) const {
617-
if (!proc || proc->get_xlen() != 64 || (in_mprv() && (proc->state.sstatus->read() & MSTATUS_MXR)) || flags.hlvx)
617+
if (!proc || proc->get_xlen() != 64 || (proc->state.sstatus->read() & MSTATUS_MXR) || flags.hlvx)
618618
return 0;
619619

620620
reg_t pmm = 0;

0 commit comments

Comments
 (0)