summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-03-30 10:31:21 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-03-30 10:31:21 +0000
commit788081417ae250e69bfa1d33d11d774bc4c03a27 (patch)
treec1d868dbb2845ab7ec90b1c10098023231e1f2e9 /vl.c
parentf638f0d3ae214d995cdd94578195700cda24597b (diff)
downloadqemu-788081417ae250e69bfa1d33d11d774bc4c03a27.tar.gz
qemu-788081417ae250e69bfa1d33d11d774bc4c03a27.tar.bz2
qemu-788081417ae250e69bfa1d33d11d774bc4c03a27.zip
rtc: add -rtc clock=rt
This will let people use backwards-compatible semantics for devices that will be affected by the following patches. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 0fccf50a5d..71a4755faf 100644
--- a/vl.c
+++ b/vl.c
@@ -529,6 +529,8 @@ static void configure_rtc(QemuOpts *opts)
if (value) {
if (!strcmp(value, "host")) {
rtc_clock = host_clock;
+ } else if (!strcmp(value, "rt")) {
+ rtc_clock = rt_clock;
} else if (!strcmp(value, "vm")) {
rtc_clock = vm_clock;
} else {