Changeset 13144 in vbox for trunk/src/VBox/VMM/VMMAll/EMAll.cpp
- Timestamp:
- Oct 9, 2008 10:44:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r13020 r13144 116 116 PVM pVM = (PVM)pCpu->apvUserData[0]; 117 117 # ifdef IN_RING0 118 int rc = PGMPhys ReadGCPtr(pVM, pDest, pSrc, cb);119 AssertMsgRC(rc, ("PGMPhys ReadGCPtr failed for pSrc=%VGv cb=%x\n", pSrc, cb));118 int rc = PGMPhysSimpleReadGCPtr(pVM, pDest, pSrc, cb); 119 AssertMsgRC(rc, ("PGMPhysSimpleReadGCPtr failed for pSrc=%VGv cb=%x\n", pSrc, cb)); 120 120 # else /* IN_RING3 */ 121 121 if (!PATMIsPatchGCAddr(pVM, pSrc)) 122 122 { 123 int rc = PGMPhys ReadGCPtr(pVM, pDest, pSrc, cb);123 int rc = PGMPhysSimpleReadGCPtr(pVM, pDest, pSrc, cb); 124 124 AssertRC(rc); 125 125 } … … 2577 2577 #endif 2578 2578 default: 2579 /* In X2APIC specification this range is reserved for APIC control. */ 2579 /* In X2APIC specification this range is reserved for APIC control. */ 2580 2580 if ((pRegFrame->ecx >= MSR_IA32_APIC_START) && (pRegFrame->ecx < MSR_IA32_APIC_END)) 2581 2581 rc = PDMApicReadMSR(pVM, VMMGetCpuId(pVM), pRegFrame->ecx, &val); 2582 else 2582 else 2583 2583 /* We should actually trigger a #GP here, but don't as that might cause more trouble. */ 2584 2584 val = 0; … … 2586 2586 } 2587 2587 Log(("EMInterpretRdmsr %s (%x) -> val=%VX64\n", emMSRtoString(pRegFrame->ecx), pRegFrame->ecx, val)); 2588 if (rc == VINF_SUCCESS) 2588 if (rc == VINF_SUCCESS) 2589 2589 { 2590 2590 pRegFrame->eax = (uint32_t) val; … … 2722 2722 2723 2723 default: 2724 /* In X2APIC specification this range is reserved for APIC control. */ 2724 /* In X2APIC specification this range is reserved for APIC control. */ 2725 2725 if ((pRegFrame->ecx >= MSR_IA32_APIC_START) && (pRegFrame->ecx < MSR_IA32_APIC_END)) 2726 2726 return PDMApicWriteMSR(pVM, VMMGetCpuId(pVM), pRegFrame->ecx, val);
Note:
See TracChangeset
for help on using the changeset viewer.