VirtualBox

Changeset 9720 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Jun 16, 2008 1:12:04 PM (17 years ago)
Author:
vboxsync
Message:

Emulate rdmsr & wrmsr.
Note that Intel mentions a (slightly different) REX.W version of RDMSR.

File:
1 edited

Legend:

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

    r9713 r9720  
    21442144    int      rc;
    21452145
    2146     /* Note: works the same in 32 and 64 bits modes. */
     2146    /** @todo According to the Intel manuals, there's a REX version of RDMSR that is slightly different.
     2147     *  That version clears the high dwords of both RDX & RAX */
    21472148    rc = CPUMQueryGuestCtxPtr(pVM, &pCtx);
    21482149    AssertRC(rc);
     
    22282229static int emInterpretRdmsr(PVM pVM, PDISCPUSTATE pCpu, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize)
    22292230{
     2231    Assert(!(pCpu->prefix & PREFIX_REX));
    22302232    return EMInterpretRdmsr(pVM, pRegFrame);
    22312233}
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