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:
Gabe Black
2022-01-23 08:10:57 -08:00
parent 145a6c3ef4
commit a746d8d619

View File

@@ -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: