mirror of https://gitee.com/openkylin/qemu.git
ESP: improve IRQ debugging
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
10760f0fa7
commit
dca47eddba
2
hw/esp.c
2
hw/esp.c
|
@ -154,6 +154,7 @@ static void esp_raise_irq(ESPState *s)
|
|||
if (!(s->rregs[ESP_RSTAT] & STAT_INT)) {
|
||||
s->rregs[ESP_RSTAT] |= STAT_INT;
|
||||
qemu_irq_raise(s->irq);
|
||||
DPRINTF("Raise IRQ\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -162,6 +163,7 @@ static void esp_lower_irq(ESPState *s)
|
|||
if (s->rregs[ESP_RSTAT] & STAT_INT) {
|
||||
s->rregs[ESP_RSTAT] &= ~STAT_INT;
|
||||
qemu_irq_lower(s->irq);
|
||||
DPRINTF("Lower IRQ\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue