Changeset 97333 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Oct 28, 2022 2:16:35 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAll.cpp
r97289 r97333 765 765 { 766 766 GCPtrFirst = pVCpu->cpum.GstCtx.eip + (offBuf - (uint32_t)(int32_t)pVCpu->iem.s.offCurInstrStart); 767 Assert(!(GCPtrFirst & ~(uint32_t)UINT16_MAX) || pVCpu->iem.s.enmCpuMode == IEMMODE_32BIT);767 /* Assert(!(GCPtrFirst & ~(uint32_t)UINT16_MAX) || pVCpu->iem.s.enmCpuMode == IEMMODE_32BIT); - this is allowed */ 768 768 if (RT_LIKELY((uint32_t)GCPtrFirst <= pVCpu->cpum.GstCtx.cs.u32Limit)) 769 769 { /* likely */ } 770 else 770 else /** @todo For CPUs older than the 386, we should not generate #GP here but wrap around! */ 771 771 iemRaiseSelectorBoundsJmp(pVCpu, X86_SREG_CS, IEM_ACCESS_INSTRUCTION); 772 772 cbMaxRead = pVCpu->cpum.GstCtx.cs.u32Limit - (uint32_t)GCPtrFirst + 1; … … 1002 1002 { 1003 1003 uint32_t GCPtrNext32 = pVCpu->cpum.GstCtx.eip; 1004 Assert(!(GCPtrNext32 & ~(uint32_t)UINT16_MAX) || pVCpu->iem.s.enmCpuMode == IEMMODE_32BIT);1004 /* Assert(!(GCPtrNext32 & ~(uint32_t)UINT16_MAX) || pVCpu->iem.s.enmCpuMode == IEMMODE_32BIT); - this is allowed */ 1005 1005 GCPtrNext32 += pVCpu->iem.s.cbOpcode; 1006 1006 if (GCPtrNext32 > pVCpu->cpum.GstCtx.cs.u32Limit) 1007 /** @todo For CPUs older than the 386, we should not generate #GP here but wrap around! */ 1007 1008 return iemRaiseSelectorBounds(pVCpu, X86_SREG_CS, IEM_ACCESS_INSTRUCTION); 1008 1009 cbToTryRead = pVCpu->cpum.GstCtx.cs.u32Limit - GCPtrNext32 + 1;
Note:
See TracChangeset
for help on using the changeset viewer.