aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2009-11-30 21:02:26 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 11:45:50 -0600
commitf74ab486d573e7b122ad9702194104aa90f30d53 (patch)
treeb64f9649b6a5cbd356362249a5f87f226b99c667 /hw
parent40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4 (diff)
downloadqemu-f74ab486d573e7b122ad9702194104aa90f30d53.zip
qemu-f74ab486d573e7b122ad9702194104aa90f30d53.tar.gz
qemu-f74ab486d573e7b122ad9702194104aa90f30d53.tar.bz2
qemu: make cirrus init value pci spec compliant
PCI memory should be disabled at reset, otherwise we might claim transactions at address 0. I/O should also be disabled, although for cirrus it is harmless to enable it as we do not have I/O bar. Note: bios fix needed for this patch to work was already applied: previously bios incorrently assumed that it does not need to enable i/o unless device has i/o bar. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/cirrus_vga.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c
index 1194b5a..1703c62 100644
--- a/hw/cirrus_vga.c
+++ b/hw/cirrus_vga.c
@@ -3231,7 +3231,6 @@ static int pci_cirrus_vga_initfn(PCIDevice *dev)
/* setup PCI */
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_CIRRUS);
pci_config_set_device_id(pci_conf, device_id);
- pci_conf[0x04] = PCI_COMMAND_IOACCESS | PCI_COMMAND_MEMACCESS;
pci_config_set_class(pci_conf, PCI_CLASS_DISPLAY_VGA);
pci_conf[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_NORMAL;