Revision 3c892168

b/hw/acpi.c
483 483

  
484 484
static void piix4_reset(void *opaque)
485 485
{
486
	PIIX4PMState *s = opaque;
487
	uint8_t *pci_conf = s->dev.config;
486
    PIIX4PMState *s = opaque;
487
    uint8_t *pci_conf = s->dev.config;
488

  
489
    pci_conf[0x58] = 0;
490
    pci_conf[0x59] = 0;
491
    pci_conf[0x5a] = 0;
492
    pci_conf[0x5b] = 0;
488 493

  
489
	pci_conf[0x58] = 0;
490
	pci_conf[0x59] = 0;
491
	pci_conf[0x5a] = 0;
492
	pci_conf[0x5b] = 0;
494
    if (kvm_enabled()) {
495
        /* Mark SMM as already inited (until KVM supports SMM). */
496
        pci_conf[0x5B] = 0x02;
497
    }
493 498
}
494 499

  
495 500
i2c_bus *piix4_pm_init(PCIBus *bus, int devfn, uint32_t smb_io_base,

Also available in: Unified diff