Use pci_config_set_prog_interface(). Signed-off-by: Sebastian Herbszt <herb...@gmx.de>
diff --git a/hw/ide/piix.c b/hw/ide/piix.c index 1cad906..2772e08 100644 --- a/hw/ide/piix.c +++ b/hw/ide/piix.c @@ -135,7 +135,7 @@ static int pci_piix_ide_initfn(PCIIDEState *d) { uint8_t *pci_conf = d->dev.config; - pci_conf[PCI_CLASS_PROG] = 0x80; // legacy ATA mode + pci_config_set_prog_interface(pci_conf, 0x80); // legacy ATA mode pci_config_set_class(pci_conf, PCI_CLASS_STORAGE_IDE); qemu_register_reset(piix3_reset, d);