]> xenbits.xensource.com Git - qemu-xen.git/commit
hw/char: cadence_uart: Log a guest error when device is unclocked or in reset
authorBin Meng <bmeng.cn@gmail.com>
Mon, 13 Sep 2021 15:07:21 +0000 (16:07 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Sep 2021 15:07:21 +0000 (16:07 +0100)
commit47c305f6f2761c5be9b5a69721cd586aaae0d43e
tree719ead0caffdeab8e79a95eaeaf2ba37c4d54a70
parent9834ecaaea8dfe1def47431f096a2b77de3583a1
hw/char: cadence_uart: Log a guest error when device is unclocked or in reset

We've got SW that expects FSBL (Bootlooader) to setup clocks and
resets. It's quite common that users run that SW on QEMU without
FSBL (FSBL typically requires the Xilinx tools installed). That's
fine, since users can stil use -device loader to enable clocks etc.

To help folks understand what's going, a log (guest-error) message
would be helpful here. In particular with the serial port since
things will go very quiet if they get things wrong.

Suggested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210901124521.30599-7-bmeng.cn@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/char/cadence_uart.c