From e6c76c0dcad6cf6f582d7a1f0ce5844c73ab936c Mon Sep 17 00:00:00 2001
From: Zhang Xiantao <xiantao.zhang@intel.com>
Date: Wed, 5 Dec 2007 10:37:17 +0800
Subject: [PATCH] kvm: qemu: IA64 doesn't need timer_drift fix logic in pic.

Since timer_drift_fix should reference some variants in pit, while ia64 doesn't
have it, so remove this logic on ia64 for compile pass.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
---
 qemu/hw/i8259.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/qemu/hw/i8259.c b/qemu/hw/i8259.c
index 1bb8137..fac86d2 100644
--- a/qemu/hw/i8259.c
+++ b/qemu/hw/i8259.c
@@ -239,6 +239,7 @@ int pic_read_irq(PicState2 *s)
     if (irq >= 0) {
 
         pic_intack(&s->pics[0], irq);
+#ifndef TARGET_IA64
 	if (time_drift_fix && irq == 0) {
 	    extern int64_t timer_acks, timer_ints_to_push;
 	    timer_acks++;
@@ -249,7 +250,7 @@ int pic_read_irq(PicState2 *s)
                 pic_set_irq1(&s->pics[0], 0, 1);
 	    }
 	}
-
+#endif
         if (irq == 2) {
             irq2 = pic_get_irq(&s->pics[1]);
             if (irq2 >= 0) {
-- 
1.5.2

