Revision 072c2c31 hw/hpet.c

b/hw/hpet.c
648 648

  
649 649
    s->hpet_counter = 0ULL;
650 650
    s->hpet_offset = 0ULL;
651
    /* 64-bit main counter; LegacyReplacementRoute. */
652
    s->capability = 0x8086a001ULL;
653
    s->capability |= (s->num_timers - 1) << HPET_ID_NUM_TIM_SHIFT;
654
    s->capability |= ((HPET_CLK_PERIOD) << 32);
655 651
    s->config = 0ULL;
656 652
    if (count > 0) {
657 653
        /* we don't enable pit when hpet_reset is first called (by hpet_init)
......
696 692
        timer->state = s;
697 693
    }
698 694

  
695
    /* 64-bit main counter; LegacyReplacementRoute. */
696
    s->capability = 0x8086a001ULL;
697
    s->capability |= (s->num_timers - 1) << HPET_ID_NUM_TIM_SHIFT;
698
    s->capability |= ((HPET_CLK_PERIOD) << 32);
699

  
699 700
    isa_reserve_irq(RTC_ISA_IRQ);
700 701
    qdev_init_gpio_in(&dev->qdev, hpet_handle_rtc_irq, 1);
701 702

  

Also available in: Unified diff