Changeset 65982 in vbox
- Timestamp:
- Mar 7, 2017 1:29:51 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/VMM/include/PGMInline.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/include/PGMInline.h
r64322 r65982 1008 1008 DECLINLINE(X86PDE) pgmShwGet32BitPDE(PVMCPU pVCpu, RTGCPTR GCPtr) 1009 1009 { 1010 const unsigned iPd = (GCPtr >> X86_PD_SHIFT) & X86_PD_MASK;1011 1012 1010 PX86PD pShwPde = pgmShwGet32BitPDPtr(pVCpu); 1013 1011 if (!pShwPde) … … 1016 1014 return ZeroPde; 1017 1015 } 1018 return pShwPde->a[ iPd];1016 return pShwPde->a[(uint32_t)GCPtr >> X86_PD_SHIFT]; 1019 1017 } 1020 1018 … … 1030 1028 DECLINLINE(PX86PDE) pgmShwGet32BitPDEPtr(PVMCPU pVCpu, RTGCPTR GCPtr) 1031 1029 { 1032 const unsigned iPd = (GCPtr >> X86_PD_SHIFT) & X86_PD_MASK;1033 1034 1030 PX86PD pPde = pgmShwGet32BitPDPtr(pVCpu); 1035 1031 AssertReturn(pPde, NULL); 1036 return &pPde->a[ iPd];1032 return &pPde->a[(uint32_t)GCPtr >> X86_PD_SHIFT]; 1037 1033 } 1038 1034
Note:
See TracChangeset
for help on using the changeset viewer.

