Fix driftfix option
Based on patch by Zachary Amsden. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
73d96e2964
commit
7e4c0336e2
6
vl.c
6
vl.c
|
@ -516,12 +516,12 @@ static void configure_rtc(QemuOpts *opts)
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef CONFIG_TARGET_I386
|
#ifdef TARGET_I386
|
||||||
value = qemu_opt_get(opts, "driftfix");
|
value = qemu_opt_get(opts, "driftfix");
|
||||||
if (value) {
|
if (value) {
|
||||||
if (!strcmp(buf, "slew")) {
|
if (!strcmp(value, "slew")) {
|
||||||
rtc_td_hack = 1;
|
rtc_td_hack = 1;
|
||||||
} else if (!strcmp(buf, "none")) {
|
} else if (!strcmp(value, "none")) {
|
||||||
rtc_td_hack = 0;
|
rtc_td_hack = 0;
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "qemu: invalid option value '%s'\n", value);
|
fprintf(stderr, "qemu: invalid option value '%s'\n", value);
|
||||||
|
|
Loading…
Reference in New Issue