mirror of
https://github.com/xemu-project/xemu.git
synced 2024-12-03 17:11:01 +00:00
lasi: fix serial port initialisation
The existing code checks for serial_hd(1) but sets the LASI serial port chardev to serial_hd(0). Use serial_hd(1) for the LASI serial port and also set the serial port endian to DEVICE_BIG_ENDIAN (which also matches the endian of the existing serial port). Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Helge Deller <deller@gmx.de> Message-Id: <20220504092600.10048-32-mark.cave-ayland@ilande.co.uk> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
e004499fd5
commit
fe744ca3ee
@ -253,7 +253,7 @@ DeviceState *lasi_initfn(MemoryRegion *address_space)
|
||||
/* Serial port */
|
||||
serial_mm_init(address_space, LASI_UART_HPA + 0x800, 0,
|
||||
qdev_get_gpio_in(dev, LASI_IRQ_UART_HPA), 8000000 / 16,
|
||||
serial_hd(0), DEVICE_NATIVE_ENDIAN);
|
||||
serial_hd(1), DEVICE_BIG_ENDIAN);
|
||||
}
|
||||
|
||||
/* PS/2 Keyboard/Mouse */
|
||||
|
Loading…
Reference in New Issue
Block a user