cva6 icon indicating copy to clipboard operation
cva6 copied to clipboard

MMU: INSTR_ACCESS_FAULT triggered by PMP

Open masgia opened this issue 4 years ago • 3 comments

In mmu.sv, line 247, there's a mixture of vaddr and PLEN, which causes a misalignment in tval icache_areq_o.fetch_exception = {riscv::INSTR_ACCESS_FAULT, {{riscv::XLEN-riscv::PLEN{1'b0}}, icache_areq_i.fetch_vaddr}, 1'b1}; Same for line 258 else icache_areq_o.fetch_exception = {riscv::INSTR_ACCESS_FAULT, {{riscv::XLEN-riscv::VLEN{1'b0}}, ptw_bad_paddr}, 1'b1};

masgia avatar Feb 03 '21 21:02 masgia

Hi @zarubaf and @JeanRochCoulon. This is a report of a possible RTL bug that nobody has looked at. The code snip-it above is still in the CVA6 code. Please have a look.

MikeOpenHWGroup avatar Feb 17 '23 17:02 MikeOpenHWGroup

I think this was fixed or at least made consistent in #968

Jbalkind avatar Feb 18 '23 17:02 Jbalkind

Indeed, it is solved ! Thanks for the fix ! @masgia to my mind you can close the issue

JeanRochCoulon avatar Mar 16 '23 07:03 JeanRochCoulon