Commit acd2a001 authored by Philippe Mathieu-Daudé's avatar Philippe Mathieu-Daudé
Browse files

hw/sparc/leon3: Map the UART device unconditionally



The UART is present on the chipset regardless there is a
character device connected to it. Map it unconditionally.

Signed-off-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: default avatarArtyom Tarasenko <atar4qemu@gmail.com>
Reviewed-by: default avatarKONRAD Frederic <frederic.konrad@adacore.com>
Message-Id: <20200608172144.20461-2-f4bug@amsat.org>
parent 28c78fe8
Loading
Loading
Loading
Loading
+8 −10
Original line number Diff line number Diff line
@@ -339,7 +339,6 @@ static void leon3_generic_hw_init(MachineState *machine)
                            0, LEON3_TIMER_IRQ, GRLIB_APBIO_AREA);

    /* Allocate uart */
    if (serial_hd(0)) {
    dev = qdev_create(NULL, TYPE_GRLIB_APB_UART);
    qdev_prop_set_chr(dev, "chrdev", serial_hd(0));
    qdev_init_nofail(dev);
@@ -349,7 +348,6 @@ static void leon3_generic_hw_init(MachineState *machine)
                            GRLIB_VENDOR_GAISLER, GRLIB_APBUART_DEV, 1,
                            LEON3_UART_IRQ, GRLIB_APBIO_AREA);
}
}

static void leon3_generic_machine_init(MachineClass *mc)
{