mirror of
https://github.com/qemu/qemu.git
synced 2025-10-24 02:20:01 +00:00
Exposing the IRQ number as a QOM property not only allows it to be
configurable but also to be displayed in HMP:
Before:
(qemu) info qtree
...
dev: mc146818rtc, id ""
gpio-out "" 1
base_year = 0 (0x0)
lost_tick_policy = "discard"
After:
dev: mc146818rtc, id ""
gpio-out "" 1
base_year = 0 (0x0)
irq = 8 (0x8)
lost_tick_policy = "discard"
The reason the IRQ number didn's show up before is that this device does not
call isa_init_irq().
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220301220037.76555-2-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220307134353.1950-9-philippe.mathieu.daude@gmail.com>
Reviewed-by: Bernhard Beschow <shentey@gmail.com>
|
||
|---|---|---|
| .. | ||
| allwinner-rtc.h | ||
| aspeed_rtc.h | ||
| goldfish_rtc.h | ||
| m48t59.h | ||
| mc146818rtc_regs.h | ||
| mc146818rtc.h | ||
| pl031.h | ||
| sun4v-rtc.h | ||
| xlnx-zynqmp-rtc.h | ||