VirtualBox

Ignore:
Timestamp:
Oct 31, 2008 10:26:14 AM (16 years ago)
Author:
vboxsync
Message:

Skip the TB flush as that's rather expensive and not necessary for single instruction emulation.

File:
1 edited

Legend:

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

    r13565 r13708  
    730730REMR3DECL(int) REMR3EmulateInstruction(PVM pVM)
    731731{
     732    bool fFlushTBs;
     733
    732734    Log2(("REMR3EmulateInstruction: (cs:eip=%04x:%08x)\n", CPUMGetGuestCS(pVM), CPUMGetGuestEIP(pVM)));
    733735
     
    738740        pVM->rem.s.Env.state |= CPU_RAW_HWACC;
    739741
     742    /* Skip the TB flush as that's rather expensive and not necessary for single instruction emulation. */
     743    fFlushTBs = pVM->rem.s.fFlushTBs;
     744    pVM->rem.s.fFlushTBs = false;
     745
    740746    /*
    741747     * Sync the state and enable single instruction / single stepping.
    742748     */
    743749    int rc = REMR3State(pVM);
     750    pVM->rem.s.fFlushTBs = fFlushTBs;
    744751    if (VBOX_SUCCESS(rc))
    745752    {
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