aboutsummaryrefslogtreecommitdiff
path: root/hw/hppa/hppa_hardware.h
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2022-05-28 11:26:29 +0200
committerHelge Deller <deller@gmx.de>2022-05-28 12:25:42 +0200
commit5079892df5f113c7f2b77f53bf7663f6c7bc6be9 (patch)
tree39dca4e048a19c82f4985bd77e8eb597fb43ede0 /hw/hppa/hppa_hardware.h
parent4de43540644962687fcd2df2a2454c1e46c2f92a (diff)
hppa: Fix serial port assignments and pass-through
This fixes the serial ports in the emulation to behave as on original hardware. On the real hardware, the LASI UART is serial port #0 and the DINO UART is serial port #1. This is fixed in SeaBIOS-hppa firmware v6, which is why at least this firmware version is required. The serial port addresses in hppa/hppa_hardware.h have to be swapped, and when creating the virtual serial ports the correct port addresses are used. This patch now for example allows to specify on the qemu command line: -serial mon:stdio -serial /dev/ttyS4 to use the emulated ttyS0 in the guest for console output, and pass ttyS4 from the host to ttyS1 in the guest. Signed-off-by: Helge Deller <deller@gmx.de> Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/hppa/hppa_hardware.h')
-rw-r--r--hw/hppa/hppa_hardware.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/hppa/hppa_hardware.h b/hw/hppa/hppa_hardware.h
index 3f7627b98f..a5ac3dd0fd 100644
--- a/hw/hppa/hppa_hardware.h
+++ b/hw/hppa/hppa_hardware.h
@@ -41,8 +41,8 @@
#define FW_CFG_IO_BASE 0xfffa0000
-#define PORT_SERIAL1 (DINO_UART_HPA + 0x800)
-#define PORT_SERIAL2 (LASI_UART_HPA + 0x800)
+#define PORT_SERIAL1 (LASI_UART_HPA + 0x800)
+#define PORT_SERIAL2 (DINO_UART_HPA + 0x800)
#define HPPA_MAX_CPUS 16 /* max. number of SMP CPUs */
#define CPU_CLOCK_MHZ 250 /* emulate a 250 MHz CPU */