Changeset 9836 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Jun 20, 2008 8:57:26 AM (16 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp
r9835 r9836 1195 1195 STAM_COUNTER_INC(&pStats->CTXALLSUFF(Read)); 1196 1196 #endif 1197 *pu32Value = 0; 1197 /* Unassigned memory; this is actually not supposed to happen. */ 1198 switch (cbValue) 1199 { 1200 case 1: *(uint8_t *)pu32Value = 0xff; break; 1201 case 2: *(uint16_t *)pu32Value = 0xffff; break; 1202 case 4: *(uint32_t *)pu32Value = 0xffffffff; break; 1203 case 8: *(uint64_t *)pu32Value = 0xffffffffffffffff; break; 1204 default: AssertReleaseMsgFailed(("cbValue=%d GCPhys=%VGp\n", cbValue, GCPhys)); break; 1205 } 1198 1206 Log4(("IOMMMIORead: GCPhys=%RGp *pu32=%08RX32 cb=%d rc=VINF_SUCCESS\n", GCPhys, *pu32Value, cbValue)); 1199 1207 return VINF_SUCCESS; -
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r9790 r9836 1315 1315 #if 1 /** @todo r=bird: Can you do this properly please. */ 1316 1316 /** @todo Try MMIO; quick hack */ 1317 if (cbRead <= 4&& IOMMMIORead(pVM, GCPhys, (uint32_t *)pvBuf, cbRead) == VINF_SUCCESS)1317 if (cbRead <= 8 && IOMMMIORead(pVM, GCPhys, (uint32_t *)pvBuf, cbRead) == VINF_SUCCESS) 1318 1318 goto end; 1319 1319 #endif … … 1656 1656 #if 1 /** @todo r=bird: Can you do this properly please. */ 1657 1657 /** @todo Try MMIO; quick hack */ 1658 if (cbWrite <= 4&& IOMMMIOWrite(pVM, GCPhys, *(uint32_t *)pvBuf, cbWrite) == VINF_SUCCESS)1658 if (cbWrite <= 8 && IOMMMIOWrite(pVM, GCPhys, *(uint32_t *)pvBuf, cbWrite) == VINF_SUCCESS) 1659 1659 goto end; 1660 1660 #endif
Note:
See TracChangeset
for help on using the changeset viewer.