summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2010-06-17 14:01:38 +0300
committerMichael S. Tsirkin <mst@redhat.com>2010-07-11 23:15:22 +0300
commitbd57ce8c7b3ab2c74335947e69f1eabc73fae438 (patch)
tree2284fe6a58a112ae76422b0911abee643f0482c7 /hw
parentfdac1d99c4f6078cb3b08f9d21db5f89368bad4b (diff)
downloadhqemu-bd57ce8c7b3ab2c74335947e69f1eabc73fae438.zip
hqemu-bd57ce8c7b3ab2c74335947e69f1eabc73fae438.tar.gz
vmware_vga: fix reset value for command register
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>
Diffstat (limited to 'hw')
-rw-r--r--hw/vmware_vga.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c
index 8c72249..12bff48 100644
--- a/hw/vmware_vga.c
+++ b/hw/vmware_vga.c
@@ -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 */
OpenPOWER on IntegriCloud