Changeset 74152 in vbox
- Timestamp:
- Sep 8, 2018 10:49:05 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 124924
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAllCImplVmxInstr.cpp.h
r74151 r74152 2540 2540 2541 2541 /* Granularity. */ 2542 if ( ( (SelReg.u32Limit & 0xfff) != 0xfff 2543 && uGranularity == 0) 2544 || ( (SelReg.u32Limit & 0xfff00000) 2545 && uGranularity == 1)) 2542 if ( ((SelReg.u32Limit & 0x00000fff) == 0x00000fff || !uGranularity) 2543 && ((SelReg.u32Limit & 0xfff00000) == 0x00000000 || uGranularity)) 2546 2544 { /* likely */ } 2547 2545 else … … 2707 2705 IEM_VMX_VMENTRY_FAILED_RET(pVCpu, pszInstr, pszFailure, kVmxVInstrDiag_Vmentry_GuestSegAttrLdtrPresent); 2708 2706 2709 if ( ( (Ldtr.u32Limit & 0xfff) != 0xfff 2710 && Ldtr.Attr.n.u1Granularity == 0) 2711 || ( (Ldtr.u32Limit & 0xfff00000) 2712 && Ldtr.Attr.n.u1Granularity == 1)) 2707 if ( ((Ldtr.u32Limit & 0x00000fff) == 0x00000fff || !Ldtr.Attr.n.u1Granularity) 2708 && ((Ldtr.u32Limit & 0xfff00000) == 0x00000000 || Ldtr.Attr.n.u1Granularity)) 2713 2709 { /* likely */ } 2714 2710 else … … 2771 2767 IEM_VMX_VMENTRY_FAILED_RET(pVCpu, pszInstr, pszFailure, kVmxVInstrDiag_Vmentry_GuestSegAttrTrPresent); 2772 2768 2773 if ( ( (Tr.u32Limit & 0xfff) != 0xfff 2774 && Tr.Attr.n.u1Granularity == 0) 2775 || ( (Tr.u32Limit & 0xfff00000) 2776 && Tr.Attr.n.u1Granularity == 1)) 2769 if ( ((Tr.u32Limit & 0x00000fff) == 0x00000fff || !Tr.Attr.n.u1Granularity) 2770 && ((Tr.u32Limit & 0xfff00000) == 0x00000000 || Tr.Attr.n.u1Granularity)) 2777 2771 { /* likely */ } 2778 2772 else
Note:
See TracChangeset
for help on using the changeset viewer.