vmware_vga: fix reset value for command register
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 17 Jun 2010 11:01:38 +0000 (14:01 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 11 Jul 2010 20:15:22 +0000 (23:15 +0300)
Make init value for this register match the spec.
BAR address is 0 at init, so enabling it
only works by chance.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/vmware_vga.c

index 8c7224968b40c9cd72fb3f9f16629c321e96d63f..12bff480eb796afde6b58c5a2e5a1a9c34382e67 100644 (file)
@@ -1240,9 +1240,6 @@ static int pci_vmsvga_initfn(PCIDevice *dev)
 
     pci_config_set_vendor_id(s->card.config, PCI_VENDOR_ID_VMWARE);
     pci_config_set_device_id(s->card.config, SVGA_PCI_DEVICE_ID);
-    s->card.config[PCI_COMMAND]        = PCI_COMMAND_IO |
-                                  PCI_COMMAND_MEMORY |
-                                  PCI_COMMAND_MASTER; /* I/O + Memory */
     pci_config_set_class(s->card.config, PCI_CLASS_DISPLAY_VGA);
     s->card.config[PCI_CACHE_LINE_SIZE]        = 0x08;         /* Cache line size */
     s->card.config[PCI_LATENCY_TIMER] = 0x40;          /* Latency timer */