]> www.infradead.org Git - qemu-nvme.git/commit
hw/rtc/mc146818rtc: QOM'ify io_base offset
authorBernhard Beschow <shentey@gmail.com>
Sun, 29 May 2022 18:40:06 +0000 (20:40 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 11 Jun 2022 09:44:50 +0000 (11:44 +0200)
commit5b21b331beaa20225b481ea068e21dcb65aba598
tree478a00f32dccc0cd9d264ebc08d24d41239fec71
parent8f3428cc8555c5226711f3b32073070d2481f5c8
hw/rtc/mc146818rtc: QOM'ify io_base offset

Exposing the io_base offset 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)
            irq = 8 (0x8)
            lost_tick_policy = "discard"

After:

          dev: mc146818rtc, id ""
            gpio-out "" 1
            base_year = 0 (0x0)
            iobase = 112 (0x70)
            irq = 8 (0x8)
            lost_tick_policy = "discard"

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220529184006.10712-4-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/i386/microvm-dt.c
hw/rtc/mc146818rtc.c
include/hw/rtc/mc146818rtc.h