- Timestamp:
- Jul 22, 2016 1:03:28 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchHda.cpp
r62117 r62437 2170 2170 { 2171 2171 const uint8_t u8Strm = HDA_SD_NUM_FROM_REG(pThis, LPIB, iReg); 2172 uint32_t u32LPIB = HDA_STREAM_REG(pThis, LPIB, u8Strm); 2172 uint32_t u32LPIB = HDA_STREAM_REG(pThis, LPIB, u8Strm); 2173 #ifdef LOG_ENABLED 2173 2174 const uint32_t u32CBL = HDA_STREAM_REG(pThis, CBL, u8Strm); 2174 2175 2175 LogFlowFunc(("[SD%RU8]: LPIB=%RU32, CBL=%RU32\n", u8Strm, u32LPIB, u32CBL)); 2176 #endif 2176 2177 2177 2178 *pu32Value = u32LPIB; … … 2292 2293 static int hdaRegWriteSDCTL(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value) 2293 2294 { 2295 #if defined(IN_RING3) || defined(LOG_ENABLED) || defined(VBOX_STRICT) 2294 2296 bool fRun = RT_BOOL(u32Value & HDA_REG_FIELD_FLAG_MASK(SDCTL, RUN)); 2295 2297 bool fInRun = RT_BOOL(HDA_REG_IND(pThis, iReg) & HDA_REG_FIELD_FLAG_MASK(SDCTL, RUN)); 2298 #endif 2296 2299 bool fReset = RT_BOOL(u32Value & HDA_REG_FIELD_FLAG_MASK(SDCTL, SRST)); 2297 2300 bool fInReset = RT_BOOL(HDA_REG_IND(pThis, iReg) & HDA_REG_FIELD_FLAG_MASK(SDCTL, SRST)); … … 4552 4555 } 4553 4556 4554 uint32_t idxRegMem = g_aHdaRegMap[idxRegDsc].mem_idx;4555 4557 #ifdef LOG_ENABLED 4558 uint32_t const idxRegMem = g_aHdaRegMap[idxRegDsc].mem_idx; 4556 4559 uint32_t const u32CurValue = pThis->au32Regs[idxRegMem]; 4557 4560 #endif … … 4657 4660 g_afMasks[cbReg] & ~g_afMasks[cb], u64Value & g_afMasks[cb], u64Value)); 4658 4661 } 4659 uint32_t u32LogOldVal = pThis->au32Regs[idxRegMem]; 4662 #ifdef LOG_ENABLED 4663 uint32_t uLogOldVal = pThis->au32Regs[idxRegMem]; 4664 #endif 4660 4665 rc = hdaWriteReg(pThis, idxRegDsc, u64Value, "*"); 4661 Log3Func(("\t%#x -> %#x\n", u 32LogOldVal, pThis->au32Regs[idxRegMem]));4666 Log3Func(("\t%#x -> %#x\n", uLogOldVal, pThis->au32Regs[idxRegMem])); 4662 4667 } 4663 4668 else -
trunk/src/VBox/Devices/Bus/MsixCommon.cpp
r56292 r62437 330 330 uint32_t MsixPciConfigRead(PPDMDEVINS pDevIns, PPCIDEVICE pDev, uint32_t u32Address, unsigned len) 331 331 { 332 NOREF(pDevIns); 333 #if defined(LOG_ENABLED) || defined(VBOX_STRICT) 332 334 int32_t iOff = u32Address - pDev->Int.s.u8MsixCapOffset; 333 NOREF(pDevIns);334 335 335 Assert(iOff >= 0 && (pciDevIsMsixCapable(pDev) && iOff < pDev->Int.s.u8MsixCapSize)); 336 uint32_t rv = 0; 337 336 #endif 337 uint32_t rv; 338 338 switch (len) 339 339 { … … 348 348 break; 349 349 default: 350 Assert(false); 350 AssertFailed(); 351 rv = 0; 351 352 } 352 353 353 354 Log2(("MsixPciConfigRead: %d (%d) -> %x\n", iOff, len, rv)); 354 355 355 return rv; 356 356 } 357 -
trunk/src/VBox/Devices/Network/DevE1000.cpp
r62425 r62437 4267 4267 static int e1kFallbackAddToFrame(PE1KSTATE pThis, E1KTXDESC* pDesc, bool fOnWorkerThread) 4268 4268 { 4269 int rc = VINF_SUCCESS; 4269 #ifdef VBOX_STRICT 4270 4270 PPDMSCATTERGATHER pTxSg = pThis->CTX_SUFF(pTxSg); 4271 4271 Assert(e1kGetDescType(pDesc) == E1K_DTYP_DATA); 4272 4272 Assert(pDesc->data.cmd.fTSE); 4273 4273 Assert(!e1kXmitIsGsoBuf(pTxSg)); 4274 #endif 4274 4275 4275 4276 uint16_t u16MaxPktLen = pThis->contextTSE.dw3.u8HDRLEN + pThis->contextTSE.dw3.u16MSS; … … 4280 4281 * Carve out segments. 4281 4282 */ 4283 int rc; 4282 4284 do 4283 4285 { -
trunk/src/VBox/Devices/Network/DrvDedicatedNic.cpp
r62428 r62437 252 252 PDMBOTHCBDECL(int) drvDedicatedNicUp_FreeBuf(PPDMINETWORKUP pInterface, PPDMSCATTERGATHER pSgBuf) 253 253 { 254 #ifdef VBOX_STRICT 254 255 PDRVDEDICATEDNIC pThis = RT_FROM_MEMBER(pInterface, DRVDEDICATEDNIC, CTX_SUFF(INetworkUp)); 255 256 Assert(pSgBuf->fFlags == (PDMSCATTERGATHER_FLAGS_MAGIC | PDMSCATTERGATHER_FLAGS_OWNER_1)); 256 257 Assert(pSgBuf->cbUsed <= pSgBuf->cbAvailable); 257 258 Assert(PDMCritSectIsOwner(&pThis->XmitLock)); 259 #endif 258 260 259 261 if (pSgBuf) … … 292 294 * Tell the driver to send the packet. 293 295 */ 294 296 NOREF(pThis); 295 297 return VERR_INTERNAL_ERROR_4; 296 298 -
trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp
r60819 r62437 1404 1404 PINTNETADDRCACHE pCache = &pIf->aAddrCache[enmAddrType]; 1405 1405 1406 #if defined(LOG_ENABLED) || defined(VBOX_STRICT) 1406 1407 const uint8_t cbAddr = pCache->cbAddress; 1407 1408 Assert(cbAddr == intnetR0AddrSize(enmAddrType)); 1409 #endif 1408 1410 1409 1411 RTSpinlockAcquire(pNetwork->hAddrSpinlock); -
trunk/src/VBox/Devices/PC/DevIOAPIC_New.cpp
r62166 r62437 761 761 uTagSrc); 762 762 /* Can't reschedule to R3. */ 763 Assert(rc == VINF_SUCCESS || rc == VERR_APIC_INTR_DISCARDED); 763 Assert(rc == VINF_SUCCESS || rc == VERR_APIC_INTR_DISCARDED); NOREF(rc); 764 764 } 765 765 -
trunk/src/VBox/Devices/PC/DevIoApic.cpp
r61847 r62437 180 180 /* We must be sure that attempts to reschedule in R3 181 181 never get here */ 182 Assert(rc == VINF_SUCCESS || rc == VERR_APIC_INTR_DISCARDED); 182 Assert(rc == VINF_SUCCESS || rc == VERR_APIC_INTR_DISCARDED); NOREF(rc); 183 183 } 184 184 } … … 524 524 /* We must be sure that attempts to reschedule in R3 525 525 never get here */ 526 Assert(rc == VINF_SUCCESS || rc == VERR_APIC_INTR_DISCARDED); 526 Assert(rc == VINF_SUCCESS || rc == VERR_APIC_INTR_DISCARDED); NOREF(rc); 527 527 } 528 528 -
trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
r60565 r62437 1768 1768 RTGCPHYS GCPhysAddr, void const *pv, unsigned cb) 1769 1769 { 1770 #ifdef LOG_ENABLED 1770 1771 PLSILOGICSCSI pThis = PDMINS_2_DATA(pDevIns, PLSILOGICSCSI); 1771 1772 1772 LogFlowFunc(("pThis=%#p GCPhysAddr=%RGp pv=%#p{%.*Rhxs} cb=%u\n", pThis, GCPhysAddr, pv, cb, pv, cb)); 1773 #endif 1773 1774 1774 1775 return VINF_SUCCESS; … … 1778 1779 RTGCPHYS GCPhysAddr, void *pv, unsigned cb) 1779 1780 { 1781 #ifdef LOG_ENABLED 1780 1782 PLSILOGICSCSI pThis = PDMINS_2_DATA(pDevIns, PLSILOGICSCSI); 1781 1782 1783 LogFlowFunc(("pThis=%#p GCPhysAddr=%RGp pv=%#p{%.*Rhxs} cb=%u\n", pThis, GCPhysAddr, pv, cb, pv, cb)); 1784 #endif 1783 1785 1784 1786 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.