diff options
author | Bernhard Beschow <shentey@gmail.com> | 2022-05-29 20:40:06 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2022-06-11 11:44:50 +0200 |
commit | 5b21b331beaa20225b481ea068e21dcb65aba598 (patch) | |
tree | 478a00f32dccc0cd9d264ebc08d24d41239fec71 /hw/i386/microvm-dt.c | |
parent | 8f3428cc8555c5226711f3b32073070d2481f5c8 (diff) | |
download | qemu-5b21b331beaa20225b481ea068e21dcb65aba598.zip qemu-5b21b331beaa20225b481ea068e21dcb65aba598.tar.gz qemu-5b21b331beaa20225b481ea068e21dcb65aba598.tar.bz2 |
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>
Diffstat (limited to 'hw/i386/microvm-dt.c')
-rw-r--r-- | hw/i386/microvm-dt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/microvm-dt.c b/hw/i386/microvm-dt.c index 287818c..b3049e4 100644 --- a/hw/i386/microvm-dt.c +++ b/hw/i386/microvm-dt.c @@ -210,7 +210,7 @@ static void dt_add_isa_rtc(MicrovmMachineState *mms, ISADevice *dev) { const char compat[] = "motorola,mc146818"; uint32_t irq = object_property_get_uint(OBJECT(dev), "irq", &error_fatal); - hwaddr base = RTC_ISA_BASE; + hwaddr base = object_property_get_uint(OBJECT(dev), "iobase", &error_fatal); hwaddr size = 8; char *nodename; |