VirtualBox

Changeset 12023 in vbox


Ignore:
Timestamp:
Sep 3, 2008 9:52:16 AM (16 years ago)
Author:
vboxsync
Message:

Must sync the HF_LMA_MASK too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/VBoxRecompiler.c

    r11897 r12023  
    15211521    }
    15221522#endif
    1523     Log(("remR3NotifyTrap: uTrap=%x error=%x next_eip=%VGv eip=%VGv cr2=%08x\n", uTrap, uErrorCode, pvNextEIP, env->eip, env->cr[2]));
     1523    Log(("remR3NotifyTrap: uTrap=%x error=%x next_eip=%VGv eip=%VGv cr2=%VGv\n", uTrap, uErrorCode, pvNextEIP, env->eip, env->cr[2]));
    15241524    if(   uTrap < 0x20
    15251525       && (env->cr[0] & X86_CR0_PE)
     
    17051705    pVM->rem.s.Env.fmask        = pCtx->msrSFMASK;
    17061706    pVM->rem.s.Env.kernelgsbase = pCtx->msrKERNELGSBASE;
     1707
     1708    /* Update the internal long mode activate flag according to the new EFER value. */
     1709    if (pCtx->msrEFER & MSR_K6_EFER_LMA)
     1710        pVM->rem.s.Env.hflags |= HF_LMA_MASK;
     1711    else
     1712        pVM->rem.s.Env.hflags &= ~(HF_LMA_MASK | HF_CS64_MASK);
    17071713#endif
    17081714
     
    17121718     */
    17131719    fFlags = CPUMGetAndClearChangedFlagsREM(pVM);
     1720    LogFlow(("CPUMGetAndClearChangedFlagsREM %x\n", fFlags));
    17141721    if (fFlags & (  CPUM_CHANGED_CR4  | CPUM_CHANGED_CR3  | CPUM_CHANGED_CR0
    17151722                  | CPUM_CHANGED_GDTR | CPUM_CHANGED_IDTR | CPUM_CHANGED_LDTR | CPUM_CHANGED_TR
     
    17261733        }
    17271734
     1735        /* CR4 before CR0! */
    17281736        if (fFlags & CPUM_CHANGED_CR4)
    17291737        {
     
    34843492#ifdef USE_OLD_DUMP_AND_DISASSEMBLY
    34853493    PVM pVM = env->pVM;
     3494
     3495    /* Doesn't work in long mode. */
     3496    if (env->hflags & HF_LMA_MASK)
     3497        return false;
    34863498
    34873499    /*
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