VirtualBox

Changeset 10358 in vbox


Ignore:
Timestamp:
Jul 8, 2008 12:19:29 PM (16 years ago)
Author:
vboxsync
Message:

Implemented cr8 reading (PDMApicGetTPR).

File:
1 edited

Legend:

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

    r10274 r10358  
    17271727EMDECL(int) EMInterpretCRxRead(PVM pVM, PCPUMCTXCORE pRegFrame, uint32_t DestRegGen, uint32_t SrcRegCrx)
    17281728{
     1729    int      rc;
    17291730    uint64_t val64;
    17301731
    1731     int rc = CPUMGetGuestCRx(pVM, SrcRegCrx, &val64);
    1732     AssertMsgRCReturn(rc, ("CPUMGetGuestCRx %d failed\n", SrcRegCrx), VERR_EM_INTERPRETER);
     1732    if (SrcRegCrx == USE_REG_CR8)
     1733    {
     1734        val64 = 0;
     1735        rc = PDMApicGetTPR(pVM, (uint8_t *)&val64);
     1736        AssertMsgRCReturn(rc, ("PDMApicGetTPR failed\n"), VERR_EM_INTERPRETER);
     1737    }
     1738    else
     1739    {
     1740        rc = CPUMGetGuestCRx(pVM, SrcRegCrx, &val64);
     1741        AssertMsgRCReturn(rc, ("CPUMGetGuestCRx %d failed\n", SrcRegCrx), VERR_EM_INTERPRETER);
     1742    }
    17331743
    17341744    if (CPUMIsGuestIn64BitCode(pVM, pRegFrame))
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