VirtualBox

Changeset 4756 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 13, 2007 8:27:24 AM (17 years ago)
Author:
vboxsync
Message:

Translate VERR_EM_INTERPRETER to VINF_EM_RAW_EMULATE_INSTR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r4420 r4756  
    10631063        /* Truly a pita. Why can't SVM give the same information as VMX? */
    10641064        rc = SVMR0InterpretInvpg(pVM, CPUMCTX2CORE(pCtx), pVMCB->ctrl.TLBCtrl.n.u32ASID);
     1065        if (rc == VINF_SUCCESS)
     1066            goto ResumeExecution;   /* eip already updated */
    10651067        break;
    10661068    }
     
    11121114        }
    11131115        Assert(rc == VERR_EM_INTERPRETER || rc == VINF_PGM_CHANGE_MODE || rc == VINF_PGM_SYNC_CR3);
    1114         if (rc == VERR_EM_INTERPRETER)
    1115             rc = VINF_EM_RAW_EMULATE_INSTR;
    11161116        break;
    11171117    }
     
    11361136        }
    11371137        Assert(rc == VERR_EM_INTERPRETER || rc == VINF_PGM_CHANGE_MODE || rc == VINF_PGM_SYNC_CR3);
    1138         if (rc == VERR_EM_INTERPRETER)
    1139             rc = VINF_EM_RAW_EMULATE_INSTR;
    11401138        break;
    11411139    }
     
    11601158        }
    11611159        Assert(rc == VERR_EM_INTERPRETER || rc == VINF_PGM_CHANGE_MODE || rc == VINF_PGM_SYNC_CR3);
    1162         if (rc == VERR_EM_INTERPRETER)
    1163             rc = VINF_EM_RAW_EMULATE_INSTR;
    11641160        break;
    11651161    }
     
    11841180        }
    11851181        Assert(rc == VERR_EM_INTERPRETER || rc == VINF_PGM_CHANGE_MODE || rc == VINF_PGM_SYNC_CR3);
    1186         if (rc == VERR_EM_INTERPRETER)
    1187             rc = VINF_EM_RAW_EMULATE_INSTR;
    11881182        break;
    11891183    }
     
    14071401        pVM->hwaccm.s.fContextUseFlags |= HWACCM_CHANGED_ALL;
    14081402    }
     1403
     1404    /* translate into a less severe return code */
     1405    if (rc == VERR_EM_INTERPRETER)
     1406        rc = VINF_EM_RAW_EMULATE_INSTR;
    14091407
    14101408    STAM_PROFILE_ADV_STOP(&pVM->hwaccm.s.StatExit, x);
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