From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeNJ9-00058G-RC for qemu-devel@nongnu.org; Mon, 08 Feb 2010 01:41:19 -0500 Received: from [199.232.76.173] (port=40954 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeNJ9-000581-Am for qemu-devel@nongnu.org; Mon, 08 Feb 2010 01:41:19 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeNJ3-0001B2-98 for qemu-devel@nongnu.org; Mon, 08 Feb 2010 01:41:19 -0500 Received: from mail.valinux.co.jp ([210.128.90.3]:40649) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NeNJ2-0001Aq-SC for qemu-devel@nongnu.org; Mon, 08 Feb 2010 01:41:13 -0500 Date: Mon, 8 Feb 2010 15:41:47 +0900 From: Isaku Yamahata Message-ID: <20100208064147.GD22624@valinux.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] pci: initialize header type register. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , "Michael S. Tsirkin" initialize header type register in pci generic code. Cc: Blue Swirl Cc: "Michael S. Tsirkin" Signed-off-by: Isaku Yamahata --- hw/pci.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index eb2043e..7b055b4 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -603,6 +603,7 @@ static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, pci_dev->irq_state = 0; pci_config_alloc(pci_dev); + pci_dev->config[PCI_HEADER_TYPE] = header_type; header_type &= ~PCI_HEADER_TYPE_MULTI_FUNCTION; if (header_type == PCI_HEADER_TYPE_NORMAL) { pci_set_default_subsystem_id(pci_dev); -- 1.6.6.1