hw/rtc/mc146818rtc: QOM'ify IRQ number
commit3b004a16540aa41f2aa6a1ceb0bf306716766914
authorBernhard Beschow <shentey@gmail.com>
Tue, 1 Mar 2022 22:00:31 +0000 (1 23:00 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 8 Mar 2022 18:38:17 +0000 (8 19:38 +0100)
treef4add451122d9070eea8a7805bdc673961c8d013
parentaa85a461efd5dc2b44102228db373dc77df826d7
hw/rtc/mc146818rtc: QOM'ify IRQ number

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>
hw/isa/piix4.c
hw/rtc/mc146818rtc.c
include/hw/rtc/mc146818rtc.h