Changeset 72181 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- May 9, 2018 6:26:28 PM (7 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAll.cpp
r71857 r72181 3656 3656 uint64_t uCr2) 3657 3657 { 3658 AssertReturn(pVCpu->iem.s.enmCpuMode == IEMMODE_16BIT, VERR_IEM_IPE_6);3659 3658 NOREF(uErr); NOREF(uCr2); 3660 3659 -
trunk/src/VBox/VMM/VMMAll/IEMAllCImpl.cpp.h
r71994 r72181 1825 1825 * limit. 1826 1826 */ 1827 if ( pVCpu->iem.s.enmCpuMode == IEMMODE_16BIT 1828 && IEM_IS_REAL_OR_V86_MODE(pVCpu)) 1827 if (IEM_IS_REAL_OR_V86_MODE(pVCpu)) 1829 1828 { 1830 1829 if (offSeg > pCtx->cs.u32Limit) … … 1995 1994 * limit. 1996 1995 */ 1997 if ( pVCpu->iem.s.enmCpuMode == IEMMODE_16BIT 1998 && IEM_IS_REAL_OR_V86_MODE(pVCpu)) 1996 if (IEM_IS_REAL_OR_V86_MODE(pVCpu)) 1999 1997 { 2000 1998 Assert(enmEffOpSize == IEMMODE_16BIT || enmEffOpSize == IEMMODE_32BIT); 2001 1999 2002 2000 /* Check stack first - may #SS(0). */ 2003 rcStrict = iemMemStackPushBeginSpecial(pVCpu, enmEffOpSize == IEMMODE_32BIT ? 6 : 4,2001 rcStrict = iemMemStackPushBeginSpecial(pVCpu, enmEffOpSize == IEMMODE_32BIT ? 4+4 : 2+2, 2004 2002 &uPtrRet.pv, &uNewRsp); 2005 2003 if (rcStrict != VINF_SUCCESS) … … 2019 2017 { 2020 2018 uPtrRet.pu32[0] = pCtx->eip + cbInstr; 2021 uPtrRet.pu16[ 3] = pCtx->cs.Sel;2019 uPtrRet.pu16[2] = pCtx->cs.Sel; 2022 2020 } 2023 2021 rcStrict = iemMemStackPushCommitSpecial(pVCpu, uPtrRet.pv, uNewRsp); … … 2249 2247 * Real mode and V8086 mode are easy. 2250 2248 */ 2251 if ( pVCpu->iem.s.enmCpuMode == IEMMODE_16BIT 2252 && IEM_IS_REAL_OR_V86_MODE(pVCpu)) 2249 if (IEM_IS_REAL_OR_V86_MODE(pVCpu)) 2253 2250 { 2254 2251 Assert(enmEffOpSize == IEMMODE_32BIT || enmEffOpSize == IEMMODE_16BIT); … … 4130 4127 * Real mode and V8086 mode are easy. 4131 4128 */ 4132 if ( pVCpu->iem.s.enmCpuMode == IEMMODE_16BIT 4133 && IEM_IS_REAL_OR_V86_MODE(pVCpu)) 4129 if (IEM_IS_REAL_OR_V86_MODE(pVCpu)) 4134 4130 { 4135 4131 *pSel = uSel;
Note:
See TracChangeset
for help on using the changeset viewer.