hw/char/pl011: add a clock input
commitaac63e0e6ea30b521370d3e3477cdcec17035d02
authorLuc Michel <luc@lmichel.fr>
Sat, 10 Oct 2020 13:57:58 +0000 (10 15:57 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Oct 2020 11:10:44 +0000 (27 11:10 +0000)
tree830692c325450176789955a7b497f2f5666d95b6
parent83ad469547812bb77faec1e98226f2859ab158d9
hw/char/pl011: add a clock input

Add a clock input to the PL011 UART so we can compute the current baud
rate and trace it. This is intended for developers who wish to use QEMU
to e.g. debug their firmware or to figure out the baud rate configured
by an unknown/closed source binary.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Luc Michel <luc@lmichel.fr>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/char/pl011.c
hw/char/trace-events
include/hw/char/pl011.h