Revision f1219091 hw/e1000.c
b/hw/e1000.c | ||
---|---|---|
223 | 223 |
static void |
224 | 224 |
set_interrupt_cause(E1000State *s, int index, uint32_t val) |
225 | 225 |
{ |
226 |
if (val) |
|
226 |
if (val && (E1000_DEVID >= E1000_DEV_ID_82547EI_MOBILE)) { |
|
227 |
/* Only for 8257x */ |
|
227 | 228 |
val |= E1000_ICR_INT_ASSERTED; |
229 |
} |
|
228 | 230 |
s->mac_reg[ICR] = val; |
229 | 231 |
s->mac_reg[ICS] = val; |
230 | 232 |
qemu_set_irq(s->dev.irq[0], (s->mac_reg[IMS] & s->mac_reg[ICR]) != 0); |
Also available in: Unified diff