DBT-RISE-RISCV icon indicating copy to clipboard operation
DBT-RISE-RISCV copied to clipboard

The MMU TLB still requires a lot of checks

Open EAlexJ opened this issue 4 months ago • 0 comments

With the current implementation of the TLB, only page table walks get cached, the checking whether the PTE is valid is done every time. This can be mitigated by:

  • Caching the access type together with the translated address, this allows skipping the check for allowed accesses
  • Also caching the privilege mode, for which a given access occurred
  • Flushing relevant parts of the TLB when mstatus updates, in particular the SUM, MPRV and MXR bits

EAlexJ avatar Aug 01 '25 12:08 EAlexJ