summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorDamien Hedde2020-04-06 15:52:51 +0200
committerPeter Maydell2020-04-30 16:35:41 +0200
commit9f2ff99c7f2392fe30e9e74d3e26a4c01820f53e (patch)
tree6eae0cff4286f145080725be763338b4cb4bf763 /hw
parenthw/arm/xilinx_zynq: connect uart clocks to slcr (diff)
downloadqemu-9f2ff99c7f2392fe30e9e74d3e26a4c01820f53e.tar.gz
qemu-9f2ff99c7f2392fe30e9e74d3e26a4c01820f53e.tar.xz
qemu-9f2ff99c7f2392fe30e9e74d3e26a4c01820f53e.zip
qdev-monitor: print the device's clock with info qtree
This prints the clocks attached to a DeviceState when using "info qtree" monitor command. For every clock, it displays the direction, the name and if the clock is forwarded. For input clock, it displays also the frequency. This is based on the original work of Frederic Konrad. Here follows a sample of `info qtree` output on xilinx_zynq machine after linux boot with only one uart clocked: > bus: main-system-bus > type System > [...] > dev: cadence_uart, id "" > gpio-out "sysbus-irq" 1 > clock-in "refclk" freq_hz=0.000000e+00 > chardev = "" > mmio 00000000e0001000/0000000000001000 > dev: cadence_uart, id "" > gpio-out "sysbus-irq" 1 > clock-in "refclk" freq_hz=1.375661e+07 > chardev = "serial0" > mmio 00000000e0000000/0000000000001000 > [...] > dev: xilinx,zynq_slcr, id "" > clock-out "uart1_ref_clk" freq_hz=0.000000e+00 > clock-out "uart0_ref_clk" freq_hz=1.375661e+07 > clock-in "ps_clk" freq_hz=3.333333e+07 > mmio 00000000f8000000/0000000000001000 Signed-off-by: Damien Hedde <damien.hedde@greensocs.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Message-id: 20200406135251.157596-10-damien.hedde@greensocs.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions