VirtualBox

Changeset 47823 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 17, 2013 11:36:08 AM (11 years ago)
Author:
vboxsync
Message:

EMRaw.cpp: fixes, IEM single instruction emulation is still disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/EMRaw.cpp

    r47820 r47823  
    365365     * Once IEM gets mature enough, nothing should ever fall back.
    366366     */
    367 #if 0/*defined(VBOX_WITH_FIRST_IEM_STEP)*/ || !defined(VBOX_WITH_REM)
     367#ifdef VBOX_WITH_FIRST_IEM_STEP
     368//# define VBOX_WITH_FIRST_IEM_STEP_B
     369#endif
     370#if defined(VBOX_WITH_FIRST_IEM_STEP_B) || !defined(VBOX_WITH_REM)
    368371    Log(("EMINS: %04x:%RGv RSP=%RGv\n", pCtx->cs.Sel, (RTGCPTR)pCtx->rip, (RTGCPTR)pCtx->rsp));
    369372    STAM_PROFILE_START(&pVCpu->em.s.StatIEMEmu, a);
    370373    rc = VBOXSTRICTRC_TODO(IEMExecOne(pVCpu));
    371374    STAM_PROFILE_STOP(&pVCpu->em.s.StatIEMEmu, a);
    372     if (rc == VINF_SUCCESS)
    373         rc = VINF_EM_RESCHEDULE;
     375    if (RT_SUCCESS(rc))
     376    {
     377        if (rc == VINF_SUCCESS || rc == VINF_EM_RESCHEDULE)
     378            rc = VINF_EM_RESCHEDULE;
     379# ifdef DEBUG_bird
     380        else
     381            AssertMsgFailed(("%Rrc\n", rc));
     382# endif
     383    }
    374384    else if (   rc == VERR_IEM_ASPECT_NOT_IMPLEMENTED
    375385             || rc == VERR_IEM_INSTR_NOT_IMPLEMENTED)
     
    378388#ifdef VBOX_WITH_REM
    379389        STAM_PROFILE_START(&pVCpu->em.s.StatREMEmu, b);
    380 # if 1 //ndef VBOX_WITH_FIRST_IEM_STEP
     390# ifndef VBOX_WITH_FIRST_IEM_STEP_B
    381391        Log(("EMINS[rem]: %04x:%RGv RSP=%RGv\n", pCtx->cs.Sel, (RTGCPTR)pCtx->rip, (RTGCPTR)pCtx->rsp));
    382392//# elif defined(DEBUG_bird)
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