qemu-e2k/include
Peter Maydell b7cd9c1e84 clock: Define and use new clock_display_freq()
It's common to want to print a human-readable indication of a clock's
frequency. Provide a utility function in the clock API to return a
string which is a displayable representation of the frequency,
and use it in qdev-monitor.c.

Before:

  (qemu) info qtree
  [...]
  dev: xilinx,zynq_slcr, id ""
    clock-in "ps_clk" freq_hz=3.333333e+07
    mmio 00000000f8000000/0000000000001000

After:

  dev: xilinx,zynq_slcr, id ""
    clock-in "ps_clk" freq_hz=33.3 MHz
    mmio 00000000f8000000/0000000000001000

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201215150929.30311-5-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
2021-01-04 23:24:44 +01:00
..
authz
block block: introduce BDRV_REQ_NO_WAIT flag 2020-12-18 12:35:55 +01:00
chardev chardev: do not use machine_init_done 2020-12-15 12:51:51 -05:00
crypto
disas
exec poison: remove GNUC check 2020-12-15 12:53:13 -05:00
fpu
hw clock: Define and use new clock_display_freq() 2021-01-04 23:24:44 +01:00
io
libdecnumber
migration migration: Replace migration's JSON writer by the general one 2020-12-19 10:39:16 +01:00
monitor sev: add sev-inject-launch-secret 2020-12-10 17:33:17 -05:00
net qdev: Move softmmu properties to qdev-properties-system.h 2020-12-18 15:20:17 -05:00
qapi qobject: Make QString immutable 2020-12-19 10:39:41 +01:00
qemu QAPI patches patches for 2020-12-19 2021-01-01 14:33:03 +00:00
qom
scsi
standard-headers target/i386: Support up to 32768 CPUs without IRQ remapping 2020-12-10 12:15:00 -05:00
sysemu vl: Add option to avoid stopping VM upon guest panic 2020-12-15 12:51:58 -05:00
tcg
ui console: drop qemu_console_get_ui_info 2020-12-11 08:06:39 +01:00
user
elf.h
glib-compat.h
qemu-common.h vl: extract softmmu/datadir.c 2020-12-10 12:15:18 -05:00
qemu-io.h
trace-tcg.h