From: Zhang Xiantao <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
---
 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

Attachment: 0006-kvm-qemu-IA64-doesn-t-need-timer_drift-fix-logic-i.patch
Description: 0006-kvm-qemu-IA64-doesn-t-need-timer_drift-fix-logic-i.patch

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to