OpenXiangShan / difftest

Modern co-simulation framework for RISC-V CPUs
Mulan Permissive Software License, Version 2
118 stars 66 forks source link

Difftest, mmu: Support Sv48 & Sv48x4 ptw check #443

Closed good-circle closed 3 months ago

good-circle commented 3 months ago

Also refactor page table walker level: previous (only support Sv39): level 0 -> 1GB page level 1 -> 2MB page level 2 -> 4KB page current (support Sv39, Sv48, and future extension) Sv48 -> maxlevel = 3, Sv39 -> maxlevel = 2 level 3 -> 512GB page level 2 -> 1GB page level 1 -> 2MB page level 0 -> 4KB page

klin02 commented 3 months ago

Wait for @pxk27 review.