Changeset 65631 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Feb 6, 2017 5:38:05 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAll.cpp
r65623 r65631 4574 4574 if (rcStrict != VINF_SUCCESS) 4575 4575 return rcStrict; 4576 /* If the new SS is 16-bit, we are only going to use SP, not ESP. */ 4577 if (!DescSS.Legacy.Gen.u1DefBig) 4578 { 4579 Log(("iemRaiseXcptOrIntInProtMode: Forcing ESP=%#x to 16 bits\n", uNewEsp)); 4580 uNewEsp = (uint16_t)uNewEsp; 4581 } 4582 4576 4583 Log7(("iemRaiseXcptOrIntInProtMode: New SS=%#x ESP=%#x (from TSS); current SS=%#x ESP=%#x\n", NewSS, uNewEsp, pCtx->ss.Sel, pCtx->esp)); 4577 4584 … … 4594 4601 else 4595 4602 { 4596 if ( uNewEsp - 1 > (DescSS.Legacy.Gen.u 4Type & X86_DESC_DB ? UINT32_MAX : UINT32_C(0xffff))4603 if ( uNewEsp - 1 > (DescSS.Legacy.Gen.u1DefBig ? UINT32_MAX : UINT16_MAX) 4597 4604 || uNewEsp - cbStackFrame < cbLimitSS + UINT32_C(1)) 4598 4605 {
Note:
See TracChangeset
for help on using the changeset viewer.