OSDN Git Service

softmmu/rtc: Emit warning when using driftfix=slew on systems without mc146818
authorThomas Huth <thuth@redhat.com>
Tue, 10 Jan 2023 09:53:51 +0000 (10:53 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 13 Jan 2023 15:22:57 +0000 (16:22 +0100)
commite8dc34196b2a81b21469f6d95afc390ef645e63b
tree571d83d195d2f883aed8be56328acdc267985a39
parente896d849331eb853cf3b7df6a24be279ae9a421d
softmmu/rtc: Emit warning when using driftfix=slew on systems without mc146818

The 'slew' lost tick policy is only available on systems with a mc146818
RTC. On other systems, "-rtc driftfix=slew" is currently silently ignored.
Let's emit at least a warning in this case to make the users aware that
there is something wrong in their command line settings.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20230110095351.611724-5-thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
softmmu/rtc.c