VirtualBox

Ignore:
Timestamp:
Jul 22, 2013 9:46:43 PM (11 years ago)
Author:
vboxsync
Message:

IEM: Implemented the mwait & monitor instructions. (Still work to be done on mwait in EM, but that's a different topic.)

File:
1 edited

Legend:

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

    r46420 r47326  
    181181 * @param   rcx                 The content of RCX.
    182182 * @param   rdx                 The content of RDX.
    183  */
    184 VMM_INT_DECL(int) EMMonitorWaitPrepare(PVMCPU pVCpu, uint64_t rax, uint64_t rcx, uint64_t rdx)
     183 * @param   GCPhys              The physical address corresponding to rax.
     184 */
     185VMM_INT_DECL(int) EMMonitorWaitPrepare(PVMCPU pVCpu, uint64_t rax, uint64_t rcx, uint64_t rdx, RTGCPHYS GCPhys)
    185186{
    186187    pVCpu->em.s.MWait.uMonitorRAX = rax;
     
    188189    pVCpu->em.s.MWait.uMonitorRDX = rdx;
    189190    pVCpu->em.s.MWait.fWait |= EMMWAIT_FLAG_MONITOR_ACTIVE;
     191    /** @todo Make use of GCPhys. */
    190192    /** @todo Complete MONITOR implementation.  */
    191193    return VINF_SUCCESS;
     
    13721374        return VERR_EM_INTERPRETER; /* not supported */
    13731375
    1374     EMMonitorWaitPrepare(pVCpu, pRegFrame->rax, pRegFrame->rcx, pRegFrame->rdx);
     1376    EMMonitorWaitPrepare(pVCpu, pRegFrame->rax, pRegFrame->rcx, pRegFrame->rdx, NIL_RTGCPHYS);
    13751377    return VINF_SUCCESS;
    13761378}
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