-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(misalign): Should use offset of original vaddr to generate gpaddr
For example, a `ld` instruction on address 0x81000ffb will be splited into two loads: 1. ld 0x81000ff8. vaddr = 0x81000ff8, fullva = 0x80000ffb 2. ld 0x81001000. vaddr = 0x81001000, fullva = 0x80000ffb When load 1 trigger a guest page fault, we should use offset of original vaddr to generate gpaddr in TLB, and and when load 2 trigger a guest page fault, we should just use offset of after-splitted vaddr(all zero) in misalignbuffer.
- Loading branch information
1 parent
6444fe0
commit 7eef70f
Showing
2 changed files
with
11 additions
and
3 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