arch-x86: Use the right bits in the page table walker.
In the section of the page table walker which processes a non-PAE, non-PSE page directory entry, use the right bits of the virtual address to figure out what to load next. Change-Id: I7be3339c24253aa5594f564087eb9a234c370325 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/55812 Reviewed-by: Matthew Poremba <matthew.poremba@amd.com> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -477,7 +477,7 @@ Walker::WalkerState::stepWalk(PacketPtr &write)
|
||||
}
|
||||
// 4 KB page
|
||||
entry.logBytes = 12;
|
||||
nextRead = mbits(pte, 31, 12) + vaddr.norml2 * dataSize;
|
||||
nextRead = mbits(pte, 31, 12) + vaddr.norml1 * dataSize;
|
||||
nextState = PTE;
|
||||
break;
|
||||
case PTE:
|
||||
|
||||
Reference in New Issue
Block a user