VirtualBox

Changeset 2223 in vbox for trunk/src/recompiler/new


Ignore:
Timestamp:
Apr 19, 2007 1:17:16 PM (18 years ago)
Author:
vboxsync
Message:

Incorrect check for valid hidden selector registers.

File:
1 edited

Legend:

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

    r2198 r2223  
    16541654    STAM_PROFILE_START(&pVM->rem.s.StatsState, a);
    16551655    register const CPUMCTX *pCtx = pVM->rem.s.pCtx;
    1656     register unsigned fFlags;
     1656    register unsigned       fFlags;
     1657    bool                    fHiddenSelRegsValid = CPUMAreHiddenSelRegsValid(pVM);
    16571658
    16581659    Assert(!pVM->rem.s.fInREM);
     
    17801781        if (fFlags & CPUM_CHANGED_LDTR)
    17811782        {
    1782             if (fFlags & CPUM_CHANGED_HIDDEN_SEL_REGS)
     1783            if (fHiddenSelRegsValid)
    17831784            {
    17841785                pVM->rem.s.Env.ldt.selector = pCtx->ldtr;
     
    17931794        if (fFlags & CPUM_CHANGED_TR)
    17941795        {
    1795             if (fFlags & CPUM_CHANGED_HIDDEN_SEL_REGS)
     1796            if (fHiddenSelRegsValid)
    17961797            {
    17971798                pVM->rem.s.Env.tr.selector = pCtx->tr;
     
    18191820     */
    18201821
    1821     if (fFlags & CPUM_CHANGED_HIDDEN_SEL_REGS)
     1822    if (fHiddenSelRegsValid)
    18221823    {
    18231824        /* The hidden selector registers are valid in the CPU context. */
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