forked from OpenXiangShan/NEMU
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix atp updating (OpenXiangShan#360)
* csr:update PPN and VMID field regardless of the new MODE * This commit correct the updating of hgatp CSR. * As descriped in spec, VMID and PPN fields in hgatp behavior as WARL in the normal way, regardless of new_val.mode. * Never set the remaining fields in hgatp to zeros when hgatp.MODE is bare, since this is set by software. * csr:make the effective bits of vsatp.PPN relies on the hgatp.MODE setting * When hgatp.MODE=Bare, the width of vsatp.PPN should be the length of PADDR minus the length of in-page address. * When hgatp.MODE=Sv39x4, the width of vsatp.PPN should be 41 minus the length of in-page address.
- Loading branch information
1 parent
c17e336
commit 932c182
Showing
2 changed files
with
53 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters