OpenXiangShan / XiangShan

Open-source high-performance RISC-V processor
Other
4.73k stars 646 forks source link

PTW, RVH: fix the bug that the last second stage translation continues after the first stage translation raises af #3096

Closed pxk27 closed 3 months ago

pxk27 commented 3 months ago
  1. ppn_af will check ppn_high because the paddrbits is 36. But when s2xlate is enabled, stage 1 ppn is 41 bits because stage 2 is sv39x4. ppn_af should not check ppn_high when s2xlate is enabled.
  2. when accessfault happens in stage 1 translation, PTW should resp rather than entering the last stage 2 translation.
XiangShanRobot commented 3 months ago
[Generated by IPC robot] commit: 32bf80fd15448d46e1b3c19dac0188b90da1f24f commit astar copy_and_run coremark gcc gromacs lbm linux mcf microbench milc namd povray wrf xalancbmk
32bf80f 1.809 0.451 2.047 1.190 2.940 2.496 2.197 0.932 1.373 1.411 3.181 2.669 2.403 2.948
master branch: commit astar copy_and_run coremark gcc gromacs lbm linux mcf microbench milc namd povray wrf xalancbmk
1436b76 1.811 0.451 2.047 1.190 2.940 2.496 2.197 0.932 1.373 1.411 3.181 2.669 2.403 2.948
84c44d2 1.809 0.451 2.047 1.190 2.940 2.496 2.197 0.932 1.373 1.411 3.181 2.669 2.403 2.948
9134676 1.809 0.451 2.047 1.190 2.940 2.496 2.197 0.932 1.373 1.411 3.181 2.669 2.403 2.948
7ffbf5f 1.809 0.452 2.052 1.196 2.951 2.499 2.199 0.930 1.377 1.407 3.436 2.653 2.398 2.941
d1da158 1.805 0.452 2.052 1.196 2.951 2.499 2.199 0.930 1.377 1.407 3.436 2.653 2.398 2.941
dd40a82 1.809 0.452 2.052 1.196 2.951 2.499 2.199 0.930 1.377 1.407 3.436 2.653 2.398 2.941
2a1dcaf 1.805 0.452 2.052 1.196 2.951 2.499 2.197 0.930 1.377 1.407 3.436 2.653 2.398 2.941
c08d352 1.809 0.452 2.052 1.196 2.951 2.499 2.197 0.930 1.377 1.407 3.436 2.653 2.398 2.941
87c5d21 1.805 0.452 2.052 1.196 2.951 2.499 2.199 0.930 1.377 1.407 3.436 2.653 2.398 2.941
864480f 1.809 0.452 2.052 1.196 2.951 2.499 2.199 0.930 1.377 1.407 3.436 2.653 2.398 2.941