Following discussion and analysis from Peter: https://lists.gnu.org/archive/html/qemu-devel/2020-10/msg05853.html
Last patch is RFC because I doubt using 128-bit is what we want... but I'm not sure how to round it neither. Future possible cleanup: un-inline these helpers. Luc Michel (1): hw/core/clock: trace clock values in Hz instead of ns Philippe Mathieu-Daudé (3): qdev-monitor: Display frequencies scaled to SI unit hw/clock: Inline and remove CLOCK_PERIOD_TO_HZ() hw/clock: Inline and remove CLOCK_PERIOD_TO_NS() include/hw/clock.h | 19 +++++++++++++------ hw/core/clock.c | 8 +++++--- softmmu/qdev-monitor.c | 8 +++++--- hw/core/trace-events | 4 ++-- 4 files changed, 25 insertions(+), 14 deletions(-) -- 2.26.2
