From patchwork Wed Jun 23 14:29:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/2] rtc: Parse the 'driftfix' option only for TARGET_I386 Date: Wed, 23 Jun 2010 04:29:46 -0000 From: Amit Shah X-Patchwork-Id: 56679 Message-Id: <34d91ff747d586261f56ba024d2fe9f8734180f6.1277303360.git.amit.shah@redhat.com> To: qemu list Cc: Amit Shah , Jan Kiszka , Gleb Natapov , Juan Quintela The driftfix option is only useful for Windows guests, and for the x86 architecture, so limit the option parsing to TARGET_I386. This ifdef conditional is moved from qemu-config.c to vl.c. The next patch will fix a bug where the driftfix option wasn't exposed at all even to the x86 architecture. Signed-off-by: Amit Shah Acked-by: Juan Quintela --- vl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index 920717a..f9c8086 100644 --- a/vl.c +++ b/vl.c @@ -418,6 +418,7 @@ static void configure_rtc(QemuOpts *opts) exit(1); } } +#ifdef TARGET_I386 value = qemu_opt_get(opts, "driftfix"); if (value) { if (!strcmp(value, "slew")) { @@ -429,6 +430,7 @@ static void configure_rtc(QemuOpts *opts) exit(1); } } +#endif } /***********************************************************/