Changeset 87345 in vbox for trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
- Timestamp:
- Jan 21, 2021 11:37:30 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r82968 r87345 1613 1613 * Checks if we activated the FPU/XMM state of the guest OS. 1614 1614 * 1615 * This differs from CPUMIsGuestFPUStateLoaded() in that it refers to the next 1616 * time we'll be executing guest code, so it may return true for 64-on-32 when 1617 * we still haven't actually loaded the FPU status, just scheduled it to be 1618 * loaded the next time we go thru the world switcher (CPUM_SYNC_FPU_STATE). 1615 * Obsolete: This differs from CPUMIsGuestFPUStateLoaded() in that it refers to 1616 * the next time we'll be executing guest code, so it may return true for 1617 * 64-on-32 when we still haven't actually loaded the FPU status, just scheduled 1618 * it to be loaded the next time we go thru the world switcher 1619 * (CPUM_SYNC_FPU_STATE). 1619 1620 * 1620 1621 * @returns true / false. … … 1623 1624 VMMDECL(bool) CPUMIsGuestFPUStateActive(PVMCPU pVCpu) 1624 1625 { 1625 return RT_BOOL(pVCpu->cpum.s.fUseFlags & (CPUM_USED_FPU_GUEST | CPUM_SYNC_FPU_STATE));1626 return RT_BOOL(pVCpu->cpum.s.fUseFlags & CPUM_USED_FPU_GUEST); 1626 1627 } 1627 1628 … … 1664 1665 1665 1666 /** 1666 * Checks if the guest debug state is to be made active during the world-switch 1667 * (currently only used for the 32->64 switcher case). 1667 * Checks if the hyper debug state is active. 1668 1668 * 1669 1669 * @returns boolean 1670 1670 * @param pVCpu The cross context virtual CPU structure of the calling EMT. 1671 1671 */ 1672 VMMDECL(bool) CPUMIsGuestDebugStateActivePending(PVMCPU pVCpu)1673 {1674 return RT_BOOL(pVCpu->cpum.s.fUseFlags & CPUM_SYNC_DEBUG_REGS_GUEST);1675 }1676 1677 1678 /**1679 * Checks if the hyper debug state is active.1680 *1681 * @returns boolean1682 * @param pVCpu The cross context virtual CPU structure of the calling EMT.1683 */1684 1672 VMMDECL(bool) CPUMIsHyperDebugStateActive(PVMCPU pVCpu) 1685 1673 { 1686 1674 return RT_BOOL(pVCpu->cpum.s.fUseFlags & CPUM_USED_DEBUG_REGS_HYPER); 1687 }1688 1689 1690 /**1691 * Checks if the hyper debug state is to be made active during the world-switch1692 * (currently only used for the 32->64 switcher case).1693 *1694 * @returns boolean1695 * @param pVCpu The cross context virtual CPU structure of the calling EMT.1696 */1697 VMMDECL(bool) CPUMIsHyperDebugStateActivePending(PVMCPU pVCpu)1698 {1699 return RT_BOOL(pVCpu->cpum.s.fUseFlags & CPUM_SYNC_DEBUG_REGS_HYPER);1700 1675 } 1701 1676
Note:
See TracChangeset
for help on using the changeset viewer.