VirtualBox

Changeset 77378 in vbox


Ignore:
Timestamp:
Feb 20, 2019 1:09:21 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128926
Message:

IEMExecLots: Poll timers every 128 instruction.

File:
1 edited

Legend:

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

    r77357 r77378  
    1438614386     * Initial decoder init w/ prefetch, then setup setjmp.
    1438714387     */
     14388    unsigned     cTimerPoll = 0;
    1438814389    VBOXSTRICTRC rcStrict = iemInitDecoderAndPrefetchOpcodes(pVCpu, false);
    1438914390    if (rcStrict == VINF_SUCCESS)
     
    1444314444                            if (cInstr-- > 0)
    1444414445                            {
    14445                                 Assert(pVCpu->iem.s.cActiveMappings == 0);
    14446                                 iemReInitDecoder(pVCpu);
    14447                                 continue;
     14446                                /* Poll timers every 128 call*/
     14447                                if (   (++cTimerPoll & 0x7f) != 0
     14448                                    || !TMTimerPollBool(pVM, pVCpu))
     14449                                {
     14450                                    Assert(pVCpu->iem.s.cActiveMappings == 0);
     14451                                    iemReInitDecoder(pVCpu);
     14452                                    continue;
     14453                                }
    1444814454                            }
    1444914455                        }
Note: See TracChangeset for help on using the changeset viewer.

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