~ubuntu-branches/ubuntu/hardy/kvm/hardy-backports

« back to all changes in this revision

Viewing changes to qemu/hw/i8259.c

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2007-11-15 02:21:55 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20071115022155-pxoxb8kfcrkn72mi
Tags: 1:52+dfsg-0ubuntu1
* New upstream release.
* 08_default_tdf.patch
  - Make -tdf the default and add a -no-tdf option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
238
238
    irq = pic_get_irq(&s->pics[0]);
239
239
    if (irq >= 0) {
240
240
 
 
241
        pic_intack(&s->pics[0], irq);
241
242
        if (time_drift_fix && irq == 0) {
242
243
            extern int64_t timer_acks, timer_ints_to_push;
243
244
            timer_acks++;
244
245
            if (timer_ints_to_push > 0) {
245
246
                timer_ints_to_push--;
246
 
                qemu_irq_lower(s->parent_irq);
247
 
                qemu_irq_raise(s->parent_irq);
 
247
                /* simulate an edge irq0, like the one generated by i8254 */
 
248
                pic_set_irq1(s, 0, 0);
 
249
                pic_set_irq1(s, 0, 1);
248
250
            }
249
251
        }
250
252
 
251
 
        pic_intack(&s->pics[0], irq);
252
253
        if (irq == 2) {
253
254
            irq2 = pic_get_irq(&s->pics[1]);
254
255
            if (irq2 >= 0) {