VirtualBox

Changeset 48544 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Sep 19, 2013 4:10:47 PM (11 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Guest and Hyper-debug state pending 32->64 switcher case helpers.

File:
1 edited

Legend:

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

    r48368 r48544  
    31173117 *
    31183118 * @returns boolean
    3119  * @param   pVM         Pointer to the VM.
     3119 * @param   pVM         Pointer to the VMCPU.
    31203120 */
    31213121VMMDECL(bool) CPUMIsGuestDebugStateActive(PVMCPU pVCpu)
     
    31233123    return RT_BOOL(pVCpu->cpum.s.fUseFlags & CPUM_USED_DEBUG_REGS_GUEST);
    31243124}
     3125
     3126
     3127/**
     3128 * Checks if the guest debug state is to be made active during the world-switch
     3129 * (currently only used for the 32->64 switcher case).
     3130 *
     3131 * @returns boolean
     3132 * @param   pVM         Pointer to the VMCPU.
     3133 */
     3134VMMDECL(bool) CPUMIsGuestDebugStateActivePending(PVMCPU pVCpu)
     3135{
     3136    return RT_BOOL(pVCpu->cpum.s.fUseFlags & CPUM_SYNC_DEBUG_REGS_GUEST);
     3137}
     3138
    31253139
    31263140/**
     
    31333147{
    31343148    return RT_BOOL(pVCpu->cpum.s.fUseFlags & CPUM_USED_DEBUG_REGS_HYPER);
     3149}
     3150
     3151
     3152/**
     3153 * Checks if the hyper debug state is to be made active during the world-switch
     3154 * (currently only used for the 32->64 switcher case).
     3155 *
     3156 * @returns boolean
     3157 * @param   pVM         Pointer to the VMCPU.
     3158 */
     3159VMMDECL(bool) CPUMIsHyperDebugStateActivePending(PVMCPU pVCpu)
     3160{
     3161    return RT_BOOL(pVCpu->cpum.s.fUseFlags & CPUM_SYNC_DEBUG_REGS_HYPER);
    31353162}
    31363163
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