Changeset 56663 in vbox for trunk/src/VBox
- Timestamp:
- Jun 27, 2015 8:31:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp
r56642 r56663 2015 2015 * Fixup TR attributes so it's compatible with Intel. Important when saved-states are used 2016 2016 * between Intel and AMD. See @bugref{6208} comment #39. 2017 * ASSUME that it's normally correct and that we're in 32-bit or 64-bit mode. 2017 2018 */ 2018 2019 HMSVM_SAVE_SEG_REG(TR, tr); 2019 if (CPUMIsGuestInLongModeEx(pMixedCtx)) 2020 pMixedCtx->tr.Attr.n.u4Type = X86_SEL_TYPE_SYS_386_TSS_BUSY; 2020 if (pMixedCtx->tr.Attr.n.u4Type != X86_SEL_TYPE_SYS_386_TSS_BUSY) 2021 { 2022 if ( pMixedCtx->tr.Attr.n.u4Type == X86_SEL_TYPE_SYS_386_TSS_AVAIL 2023 || CPUMIsGuestInLongModeEx(pMixedCtx)) 2024 pMixedCtx->tr.Attr.n.u4Type = X86_SEL_TYPE_SYS_386_TSS_BUSY; 2025 else if (pMixedCtx->tr.Attr.n.u4Type == X86_SEL_TYPE_SYS_286_TSS_AVAIL) 2026 pMixedCtx->tr.Attr.n.u4Type = X86_SEL_TYPE_SYS_286_TSS_BUSY; 2027 } 2021 2028 2022 2029 /*
Note:
See TracChangeset
for help on using the changeset viewer.