提交 7e4c0336 编写于 作者: B Blue Swirl

Fix driftfix option

Based on patch by Zachary Amsden.
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 73d96e29
...@@ -516,12 +516,12 @@ static void configure_rtc(QemuOpts *opts) ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册