VirtualBox

Ignore:
Timestamp:
Jan 21, 2021 11:37:30 AM (4 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Removed CPUM_SYNC_FPU_STATE, CPUM_SYNC_DEBUG_REGS_GUEST and CPUM_SYNC_DEBUG_REGS_HYPER as they were related to 64-bit guest on 32-bit host support and is no longer used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp

    r82968 r87345  
    16131613 * Checks if we activated the FPU/XMM state of the guest OS.
    16141614 *
    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).
    16191620 *
    16201621 * @returns true / false.
     
    16231624VMMDECL(bool) CPUMIsGuestFPUStateActive(PVMCPU pVCpu)
    16241625{
    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);
    16261627}
    16271628
     
    16641665
    16651666/**
    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.
    16681668 *
    16691669 * @returns boolean
    16701670 * @param   pVCpu       The cross context virtual CPU structure of the calling EMT.
    16711671 */
    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 boolean
    1682  * @param   pVCpu       The cross context virtual CPU structure of the calling EMT.
    1683  */
    16841672VMMDECL(bool) CPUMIsHyperDebugStateActive(PVMCPU pVCpu)
    16851673{
    16861674    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-switch
    1692  * (currently only used for the 32->64 switcher case).
    1693  *
    1694  * @returns boolean
    1695  * @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);
    17001675}
    17011676
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette