VirtualBox

Changeset 97220 in vbox


Ignore:
Timestamp:
Oct 18, 2022 10:50:03 PM (2 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Access CPUMCTX::eflags via the 'u' member when possible in preparation for putting internal info in the reserved bits.

File:
1 edited

Legend:

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

    r97213 r97220  
    325325VMMDECL(int) CPUMSetGuestEFlags(PVMCPU pVCpu, uint32_t eflags)
    326326{
    327     pVCpu->cpum.s.Guest.eflags.u32 = eflags;
     327    pVCpu->cpum.s.Guest.eflags.u = eflags;
    328328    pVCpu->cpum.s.Guest.fExtrn &= ~CPUMCTX_EXTRN_RFLAGS;
    329329    return VINF_SUCCESS;
     
    659659{
    660660    CPUM_INT_ASSERT_NOT_EXTRN(pVCpu, CPUMCTX_EXTRN_RFLAGS);
    661     return pVCpu->cpum.s.Guest.eflags.u32;
     661    return pVCpu->cpum.s.Guest.eflags.u;
    662662}
    663663
     
    20872087    pCtx->cr3        = pHostState->uCr3;
    20882088    CPUMSetGuestCR4(pVCpu, pHostState->uCr4);
    2089     pCtx->rflags     = pHostState->rflags;
     2089    pCtx->rflags.u   = pHostState->rflags.u;
    20902090    pCtx->rflags.Bits.u1VM = 0;
    20912091    pCtx->rip        = pHostState->uRip;
     
    21232123    pHostState->uCr3     = pCtx->cr3;
    21242124    pHostState->uCr4     = pCtx->cr4;
    2125     pHostState->rflags   = pCtx->rflags;
     2125    pHostState->rflags.u = pCtx->rflags.u;
    21262126    pHostState->uRip     = pCtx->rip + cbInstr;
    21272127    pHostState->uRsp     = pCtx->rsp;
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