zero-day-labs / riscv-iommu

IOMMU IP compliant with the RISC-V IOMMU Specification v1.0
Apache License 2.0
66 stars 12 forks source link

Wrong cause_code during accessing PTE #15

Closed mhayat-10xe closed 2 months ago

mhayat-10xe commented 2 months ago

If pte.v == 0 and AXI response is okay, there should be an error, and the cause code should be a page fault. But if pte.v == 0 and at the same time AXI response is not okay, priority should be given to the error due to AXI response, and the cause code should be PT_DATA_CORRUPTION. However, the RTL is giving cause_code == page_fault, which is incorrect.

malejo97 commented 2 months ago

@mhayat-10xe Thanks for noting the issue and making PR #16 to resolve it. It has been merged into main.