Changeset 100783 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Aug 3, 2023 9:03:30 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAllCImpl.cpp
r100624 r100783 4536 4536 if ((uNewCs & X86_SEL_MASK_OFF_RPL) == 0) 4537 4537 { 4538 Log (("sysenter: SYSENTER_CS = %#x -> #GP(0)\n", uNewCs));4538 LogRel(("sysenter: SYSENTER_CS = %#x -> #GP(0)\n", uNewCs)); 4539 4539 return iemRaiseGeneralProtectionFault0(pVCpu); 4540 4540 } … … 4560 4560 if (fIsLongMode) 4561 4561 { 4562 Log(("sysenter: %04x:%016RX64 [efl=%#llx] -> %04x:%016RX64\n", pVCpu->cpum.GstCtx.cs , pVCpu->cpum.GstCtx.rip,4562 Log(("sysenter: %04x:%016RX64 [efl=%#llx] -> %04x:%016RX64\n", pVCpu->cpum.GstCtx.cs.Sel, pVCpu->cpum.GstCtx.rip, 4563 4563 pVCpu->cpum.GstCtx.rflags.u, uNewCs & X86_SEL_MASK_OFF_RPL, pVCpu->cpum.GstCtx.SysEnter.eip)); 4564 4564 pVCpu->cpum.GstCtx.rip = pVCpu->cpum.GstCtx.SysEnter.eip; … … 4571 4571 else 4572 4572 { 4573 Log(("sysenter: %04x:%08RX32 [efl=%#llx] -> %04x:%08RX32\n", pVCpu->cpum.GstCtx.cs , (uint32_t)pVCpu->cpum.GstCtx.rip,4573 Log(("sysenter: %04x:%08RX32 [efl=%#llx] -> %04x:%08RX32\n", pVCpu->cpum.GstCtx.cs.Sel, (uint32_t)pVCpu->cpum.GstCtx.rip, 4574 4574 pVCpu->cpum.GstCtx.rflags.u, uNewCs & X86_SEL_MASK_OFF_RPL, (uint32_t)pVCpu->cpum.GstCtx.SysEnter.eip)); 4575 4575 pVCpu->cpum.GstCtx.rip = (uint32_t)pVCpu->cpum.GstCtx.SysEnter.eip; … … 4578 4578 | X86DESCATTR_LIMIT_HIGH | X86_SEL_TYPE_ER_ACC; 4579 4579 pVCpu->iem.s.fExec = (pVCpu->iem.s.fExec & ~(IEM_F_MODE_MASK | IEM_F_X86_CPL_MASK)) 4580 | IEM_F_MODE_X86_32BIT 4580 | IEM_F_MODE_X86_32BIT_PROT 4581 4581 | iemCalc32BitFlatIndicatorEsDs(pVCpu); 4582 4582 } … … 4657 4657 if (enmEffOpSize == IEMMODE_64BIT) 4658 4658 { 4659 Log(("sysexit: %04x:%016RX64 [efl=%#llx] -> %04x:%016RX64\n", pVCpu->cpum.GstCtx.cs , pVCpu->cpum.GstCtx.rip,4659 Log(("sysexit: %04x:%016RX64 [efl=%#llx] -> %04x:%016RX64\n", pVCpu->cpum.GstCtx.cs.Sel, pVCpu->cpum.GstCtx.rip, 4660 4660 pVCpu->cpum.GstCtx.rflags.u, (uNewCs | 3) + 32, pVCpu->cpum.GstCtx.rcx)); 4661 4661 pVCpu->cpum.GstCtx.rip = pVCpu->cpum.GstCtx.rdx; … … 4674 4674 else 4675 4675 { 4676 Log(("sysexit: %04x:%08RX64 [efl=%#llx] -> %04x:%08RX32\n", pVCpu->cpum.GstCtx.cs , pVCpu->cpum.GstCtx.rip,4676 Log(("sysexit: %04x:%08RX64 [efl=%#llx] -> %04x:%08RX32\n", pVCpu->cpum.GstCtx.cs.Sel, pVCpu->cpum.GstCtx.rip, 4677 4677 pVCpu->cpum.GstCtx.rflags.u, (uNewCs | 3) + 16, (uint32_t)pVCpu->cpum.GstCtx.edx)); 4678 4678 pVCpu->cpum.GstCtx.rip = pVCpu->cpum.GstCtx.edx; … … 4687 4687 pVCpu->iem.s.fExec = (pVCpu->iem.s.fExec & ~(IEM_F_MODE_MASK | IEM_F_X86_CPL_MASK)) 4688 4688 | (3 << IEM_F_X86_CPL_SHIFT) 4689 | IEM_F_MODE_X86_32BIT 4689 | IEM_F_MODE_X86_32BIT_PROT 4690 4690 | iemCalc32BitFlatIndicatorEsDs(pVCpu); 4691 4691 }
Note:
See TracChangeset
for help on using the changeset viewer.