mirror of https://github.com/xemu-project/xemu.git
hw/i386/microvm-dt: Determine mc146818rtc's IRQ number from QOM property
Since commit 3b004a1654
'hw/rtc/
mc146818rtc: QOM'ify IRQ number' mc146818rtc's IRQ number is
configurable. Fix microvm-dt to respect its value.
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-3-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
94c720f39e
commit
8f3428cc85
|
@ -209,7 +209,7 @@ static void dt_add_isa_serial(MicrovmMachineState *mms, ISADevice *dev)
|
||||||
static void dt_add_isa_rtc(MicrovmMachineState *mms, ISADevice *dev)
|
static void dt_add_isa_rtc(MicrovmMachineState *mms, ISADevice *dev)
|
||||||
{
|
{
|
||||||
const char compat[] = "motorola,mc146818";
|
const char compat[] = "motorola,mc146818";
|
||||||
uint32_t irq = RTC_ISA_IRQ;
|
uint32_t irq = object_property_get_uint(OBJECT(dev), "irq", &error_fatal);
|
||||||
hwaddr base = RTC_ISA_BASE;
|
hwaddr base = RTC_ISA_BASE;
|
||||||
hwaddr size = 8;
|
hwaddr size = 8;
|
||||||
char *nodename;
|
char *nodename;
|
||||||
|
|
Loading…
Reference in New Issue