Revision 9277bc72
b/hw/slavio_serial.c | ||
---|---|---|
260 | 260 |
|
261 | 261 |
static int slavio_serial_update_irq_chn(ChannelState *s) |
262 | 262 |
{ |
263 |
if ((s->wregs[W_INTR] & INTR_INTALL) && // interrupts enabled |
|
264 |
(((s->wregs[W_INTR] & INTR_TXINT) && s->txint == 1) || |
|
263 |
if ((((s->wregs[W_INTR] & INTR_TXINT) && s->txint == 1) || |
|
265 | 264 |
// tx ints enabled, pending |
266 | 265 |
((((s->wregs[W_INTR] & INTR_RXMODEMSK) == INTR_RXINT1ST) || |
267 | 266 |
((s->wregs[W_INTR] & INTR_RXMODEMSK) == INTR_RXINTALL)) && |
Also available in: Unified diff