Revision 3fffc223 hw/pc.c

b/hw/pc.c
699 699
    }
700 700

  
701 701
    if (pci_enabled && acpi_enabled) {
702
        uint8_t *eeprom_buf = qemu_mallocz(8 * 256); /* XXX: make this persistent */
702 703
        piix4_pm_init(pci_bus, piix3_devfn + 3);
704
        for (i = 0; i < 8; i++) {
705
            SMBusDevice *eeprom = smbus_eeprom_device_init(0x50 + i,
706
                eeprom_buf + (i * 256));
707
            piix4_smbus_register_device(eeprom, 0x50 + i);
708
        }
703 709
    }
704 710
    
705 711
    if (i440fx_state) {

Also available in: Unified diff