OSDN Git Service

hw/qdev-clock: Display error hint when clock is missing from device
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 12 Oct 2020 09:57:46 +0000 (11:57 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 16 Oct 2020 16:58:10 +0000 (18:58 +0200)
commit01d858629eae532f50f3dac6df9e6ab912626e00
tree75ac094085be16c6bd9c4e73927a791335df3dac
parent709616c713f9471a993ad7d16bce23e8b88ce958
hw/qdev-clock: Display error hint when clock is missing from device

Instead of directly aborting, display a hint to help the developer
figure out the problem (likely trying to connect a clock to a device
pre-dating the Clock API, thus not expecting clocks).

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Reviewed-by: Damien Hedde <damien.hedde@greensocs.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-Id: <20201012095804.3335117-4-f4bug@amsat.org>
hw/core/qdev-clock.c