Changeset 10358 in vbox
- Timestamp:
- Jul 8, 2008 12:19:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r10274 r10358 1727 1727 EMDECL(int) EMInterpretCRxRead(PVM pVM, PCPUMCTXCORE pRegFrame, uint32_t DestRegGen, uint32_t SrcRegCrx) 1728 1728 { 1729 int rc; 1729 1730 uint64_t val64; 1730 1731 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 } 1733 1743 1734 1744 if (CPUMIsGuestIn64BitCode(pVM, pRegFrame))
Note:
See TracChangeset
for help on using the changeset viewer.