Changeset 51528 in vbox for trunk/src/VBox
- Timestamp:
- Jun 4, 2014 11:41:38 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 94162
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchHda.cpp
r51516 r51528 2431 2431 uint32_t offReg = GCPhysAddr - pThis->MMIOBaseAddr; 2432 2432 int idxRegDsc = hdaRegLookup(pThis, offReg); 2433 uint32_t idxRegMem = g_aHdaRegMap[idxRegDsc].mem_idx;2433 uint32_t idxRegMem = idxRegDsc != -1 ? g_aHdaRegMap[idxRegDsc].mem_idx : UINT32_MAX; 2434 2434 uint64_t u64Value; 2435 2435 if (cb == 4) u64Value = *(uint32_t const *)pv; … … 2465 2465 */ 2466 2466 if (idxRegDsc != -1 && g_aHdaRegMap[idxRegDsc].size == cb) 2467 { 2467 2468 rc = hdaWriteReg(pThis, idxRegDsc, u64Value, ""); 2469 Log(("hdaMMIOWrite: @%#05x %#x -> %#x\n", offRegLog, u32LogOldValue, 2470 idxRegLog != -1 ? pThis->au32Regs[idxRegLog] : UINT32_MAX)); 2471 } 2468 2472 /* 2469 2473 * Partial or multiple register access, loop thru the requested memory. … … 2501 2505 g_afMasks[cbReg] & ~g_afMasks[cb], u64Value & g_afMasks[cb], u64Value)); 2502 2506 } 2507 uint32_t u32LogOldVal = pThis->au32Regs[idxRegMem]; 2503 2508 rc = hdaWriteReg(pThis, idxRegDsc, u64Value, "*"); 2509 Log(("hdaMMIOWrite: @%#05x %#x -> %#x\n", offRegLog, u32LogOldVal, 2510 pThis->au32Regs[idxRegMem])); 2504 2511 } 2505 2512 else … … 2580 2587 else 2581 2588 rc = VINF_SUCCESS; 2582 #endif 2589 2583 2590 Log(("hdaMMIOWrite: @%#05x %#x -> %#x\n", offRegLog, u32LogOldValue, 2584 2591 idxRegLog != -1 ? pThis->au32Regs[idxRegLog] : UINT32_MAX)); 2592 #endif 2585 2593 return rc; 2586 2594 }
Note:
See TracChangeset
for help on using the changeset viewer.