Message ID | 1292879910$755@local |
---|---|
State | New |
Headers | show |
diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index 5d5464a..e125dfc 100644 --- a/hw/ide/cmd646.c +++ b/hw/ide/cmd646.c @@ -230,7 +230,7 @@ static int pci_cmd646_ide_initfn(PCIDevice *dev) pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_CMD_646); pci_conf[PCI_REVISION_ID] = 0x07; // IDE controller revision - pci_conf[PCI_CLASS_PROG] = 0x8f; + pci_config_set_prog_interface(pci_conf, 0x8f); pci_config_set_class(pci_conf, PCI_CLASS_STORAGE_IDE);
Use pci_config_set_prog_interface(). Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>