VirtualBox

Changeset 71091 in vbox


Ignore:
Timestamp:
Feb 22, 2018 8:46:51 AM (7 years ago)
Author:
vboxsync
Message:

cpum.h: Added CPUMGuestSvmUpdateNRip.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpum.h

    r70948 r71091  
    14801480    return HMIsGuestSvmXcptInterceptSet(pVCpu, pCtx, uVector);
    14811481}
     1482
     1483/**
     1484 * Updates the NextRIP (NRIP) field in the nested-guest VMCB.
     1485 *
     1486 * @param   pVCpu       The cross context virtual CPU structure of the calling EMT.
     1487 * @param   pCtx        Pointer to the context.
     1488 * @param   cbInstr     The length of the current instruction in bytes.
     1489 */
     1490DECLINLINE(void) CPUMGuestSvmUpdateNRip(PVMCPU pVCpu, PCCPUMCTX pCtx, uint8_t cbInstr)
     1491{
     1492    RT_NOREF(pVCpu);
     1493    PSVMVMCB pVmcb = pCtx->hwvirt.svm.CTX_SUFF(pVmcb);
     1494    Assert(pVmcb);
     1495    pVmcb->ctrl.u64NextRIP = pCtx->rip + cbInstr;
     1496}
    14821497#endif /* !IN_RC */
    14831498
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