Changeset 97221 in vbox
- Timestamp:
- Oct 18, 2022 10:51:49 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 154197
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAll.cpp
r97213 r97221 2242 2242 * Clear the busy bit in current task's TSS descriptor if it's a task switch due to JMP/IRET. 2243 2243 */ 2244 uint32_t u32EFlags = pVCpu->cpum.GstCtx.eflags.u32;2244 uint32_t fEFlags = pVCpu->cpum.GstCtx.eflags.u; 2245 2245 if ( enmTaskSwitch == IEMTASKSWITCH_JUMP 2246 2246 || enmTaskSwitch == IEMTASKSWITCH_IRET) … … 2270 2270 Assert( uNewTSSType == X86_SEL_TYPE_SYS_286_TSS_BUSY 2271 2271 || uNewTSSType == X86_SEL_TYPE_SYS_386_TSS_BUSY); 2272 u32EFlags &= ~X86_EFL_NT;2272 fEFlags &= ~X86_EFL_NT; 2273 2273 } 2274 2274 } … … 2282 2282 Log(("iemTaskSwitch: Switching to the same TSS! enmTaskSwitch=%u GCPtr[Cur|New]TSS=%#RGv\n", enmTaskSwitch, GCPtrCurTSS)); 2283 2283 Log(("uCurCr3=%#x uCurEip=%#x uCurEflags=%#x uCurEax=%#x uCurEsp=%#x uCurEbp=%#x uCurCS=%#04x uCurSS=%#04x uCurLdt=%#x\n", 2284 pVCpu->cpum.GstCtx.cr3, pVCpu->cpum.GstCtx.eip, pVCpu->cpum.GstCtx.eflags.u 32, pVCpu->cpum.GstCtx.eax,2284 pVCpu->cpum.GstCtx.cr3, pVCpu->cpum.GstCtx.eip, pVCpu->cpum.GstCtx.eflags.u, pVCpu->cpum.GstCtx.eax, 2285 2285 pVCpu->cpum.GstCtx.esp, pVCpu->cpum.GstCtx.ebp, pVCpu->cpum.GstCtx.cs.Sel, pVCpu->cpum.GstCtx.ss.Sel, 2286 2286 pVCpu->cpum.GstCtx.ldtr.Sel)); … … 2307 2307 PX86TSS32 pCurTSS32 = (PX86TSS32)((uintptr_t)pvCurTSS32 - offCurTSS); 2308 2308 pCurTSS32->eip = uNextEip; 2309 pCurTSS32->eflags = u32EFlags;2309 pCurTSS32->eflags = fEFlags; 2310 2310 pCurTSS32->eax = pVCpu->cpum.GstCtx.eax; 2311 2311 pCurTSS32->ecx = pVCpu->cpum.GstCtx.ecx; … … 2351 2351 PX86TSS16 pCurTSS16 = (PX86TSS16)((uintptr_t)pvCurTSS16 - offCurTSS); 2352 2352 pCurTSS16->ip = uNextEip; 2353 pCurTSS16->flags = u32EFlags;2353 pCurTSS16->flags = (uint16_t)fEFlags; 2354 2354 pCurTSS16->ax = pVCpu->cpum.GstCtx.ax; 2355 2355 pCurTSS16->cx = pVCpu->cpum.GstCtx.cx;
Note:
See TracChangeset
for help on using the changeset viewer.