Changeset 106541 in vbox for trunk/src/VBox/Devices/Serial
- Timestamp:
- Oct 21, 2024 7:31:54 AM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DevPL011.cpp
r106061 r106541 382 382 /** The receive FIFO. */ 383 383 PL011FIFO FifoRecv; 384 /** The current state of the IRQ line. */ 385 bool fIrqAsserted; 384 386 } DEVPL011; 385 387 /** Pointer to the shared serial device state. */ … … 489 491 pThis, pThis->uRegIrqSts, pThis->uRegIrqMask)); 490 492 493 /* Only set the IRQ state if it actually changed. */ 494 bool fAssert = RT_BOOL(pThis->uRegIrqSts & ~pThis->uRegIrqMask); 491 495 RT_NOREF(pThisCC); 492 if (pThis->uRegIrqSts & ~pThis->uRegIrqMask) 493 PDMDevHlpISASetIrqNoWait(pDevIns, pThis->u16Irq, 1); 494 else 495 PDMDevHlpISASetIrqNoWait(pDevIns, pThis->u16Irq, 0); 496 if (pThis->fIrqAsserted ^ fAssert) 497 { 498 PDMDevHlpISASetIrqNoWait(pDevIns, pThis->u16Irq, fAssert); 499 pThis->fIrqAsserted = fAssert; 500 } 496 501 } 497 502
Note:
See TracChangeset
for help on using the changeset viewer.