aboutsummaryrefslogtreecommitdiff
path: root/hw/pci-host
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2024-02-02 11:57:11 +0100
committerHelge Deller <deller@gmx.de>2024-02-11 13:20:23 +0100
commitdbca083513aeb2ba65fe170f39e535c165abee22 (patch)
tree2fbe1465982a52251f1780515e76fa489351752f /hw/pci-host
parent1a72469ccc580b6ace89d92977de7f80434ffbd1 (diff)
downloadqemu-dbca083513aeb2ba65fe170f39e535c165abee22.zip
qemu-dbca083513aeb2ba65fe170f39e535c165abee22.tar.gz
qemu-dbca083513aeb2ba65fe170f39e535c165abee22.tar.bz2
target/hppa: Add "diag 0x101" for console output support
For debugging purposes at the early stage of the bootup process, the SeaBIOS-hppa firmware sometimes needs to output characters to the serial console. Note that the serial console is the default output method for parisc machines. At this stage PCI busses and other devices haven't been initialized yet. So, SeaBIOS-hppa will not be able to find the correct I/O ports for the serial ports yet. Instead, add an emulation for the "diag 0x101" opcode to assist here. Without any other dependencies, SeaBIOS-hppa can then load the character to be printed in register %r26 and issue the diag assembly instruction. The qemu diag_console_output() helper function will then print that character to the first serial port. Signed-off-by: Helge Deller <deller@gmx.de> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/pci-host')
0 files changed, 0 insertions, 0 deletions