aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-03-27 21:33:46 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-03-27 21:33:46 +0000
commit7e4c0336e2b2ebc804d2e3d6432025a1e5193f13 (patch)
tree16d449f689d0ce9a15d09c378d2356edebecf83a
parent73d96e29648304babda911dc8e652c03f487459a (diff)
Fix driftfix option
Based on patch by Zachary Amsden. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--vl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vl.c b/vl.c
index ca568b2bde..8a73235ade 100644
--- a/vl.c
+++ b/vl.c
@@ -516,12 +516,12 @@ static void configure_rtc(QemuOpts *opts)
exit(1);
}
}
-#ifdef CONFIG_TARGET_I386
+#ifdef TARGET_I386
value = qemu_opt_get(opts, "driftfix");
if (value) {
- if (!strcmp(buf, "slew")) {
+ if (!strcmp(value, "slew")) {
rtc_td_hack = 1;
- } else if (!strcmp(buf, "none")) {
+ } else if (!strcmp(value, "none")) {
rtc_td_hack = 0;
} else {
fprintf(stderr, "qemu: invalid option value '%s'\n", value);