Revision 7f5b7d3e hw/acpi.c

b/hw/acpi.c
88 88
static int get_pmsts(PIIX4PMState *s)
89 89
{
90 90
    int64_t d;
91
    int pmsts;
92
    pmsts = s->pmsts;
91

  
93 92
    d = muldiv64(qemu_get_clock(vm_clock), PM_FREQ, get_ticks_per_sec());
94 93
    if (d >= s->tmr_overflow_time)
95 94
        s->pmsts |= TMROF_EN;
......
206 205
static void pm_ioport_writel(void *opaque, uint32_t addr, uint32_t val)
207 206
{
208 207
    //    PIIX4PMState *s = opaque;
209
    addr &= 0x3f;
210 208
#ifdef DEBUG
209
    addr &= 0x3f;
211 210
    printf("PM writel port=0x%04x val=0x%08x\n", addr, val);
212 211
#endif
213 212
}

Also available in: Unified diff