mirror of https://gitee.com/openkylin/qemu.git
niagara: check if a serial port is available
Reported-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
This commit is contained in:
parent
5e3a549498
commit
a5a08302d4
|
@ -158,9 +158,10 @@ static void niagara_init(MachineState *machine)
|
|||
exit(1);
|
||||
}
|
||||
}
|
||||
serial_mm_init(sysmem, NIAGARA_UART_BASE, 0, NULL, 115200,
|
||||
serial_hds[0], DEVICE_BIG_ENDIAN);
|
||||
|
||||
if (serial_hds[0]) {
|
||||
serial_mm_init(sysmem, NIAGARA_UART_BASE, 0, NULL, 115200,
|
||||
serial_hds[0], DEVICE_BIG_ENDIAN);
|
||||
}
|
||||
empty_slot_init(NIAGARA_IOBBASE, NIAGARA_IOBSIZE);
|
||||
sun4v_rtc_init(NIAGARA_RTC_BASE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue