Isaku Yamahata b80d4a9887 pci: don't overwrite multi functio bit in pci header type.
Don't overwrite pci header type.
Otherwise, multi function bit which pci_init_header_type() sets
appropriately is lost.
Anyway PCI_HEADER_TYPE_NORMAL is zero, so it is unnecessary to zero
which is already zero cleared.

how to test:
run qemu and issue info pci to see whether a device in question is
normal device, not pci-to-pci bridge.
This is handy because guest os isn't required.

tested changes:
The following files are covered by using following commands.
sparc64-softmmu
  apb_pci.c, vga-pci.c, cmd646.c, ne2k_pci.c, sun4u.c
ppc-softmmu
  grackle_pci.c, cmd646.c, ne2k_pci.c, vga-pci.c, macio.c
ppc-softmmu -M mac99
  unin_pci.c(uni-north, uni-north-agp)
ppc64-softmmu
  pci-ohci, ne2k_pci, vga-pci, unin_pci.c(u3-agp)
x86_64-softmmu
  acpi_piix4.c, ide/piix.c, piix_pci.c
  -vga vmware vmware_vga.c
  -watchdog i6300esb wdt_i6300esb.c
  -usb usb-uhci.c
  -sound ac97 ac97.c
  -nic model=rtl8139 rtl8139.c
  -nic model=pcnet pcnet.c
  -balloon virtio virtio-pci.c:

untested changes:
The following changes aren't tested.
prep_pci.c: ppc-softmmu -M prep should cover, but core dumped.
unin_pci.c(uni-north-pci): the caller is commented out.
openpic.c: the caller is commented out in ppc_prep.c

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-07-11 20:00:56 +03:00
..
2010-06-13 19:00:50 +01:00
2010-05-15 17:36:13 +00:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-06-19 07:47:42 +00:00
2010-06-19 07:47:42 +00:00
2010-05-15 17:36:13 +00:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-04-08 21:17:10 +02:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-04-08 21:44:38 +02:00
2010-03-21 19:47:15 +00:00
2010-02-07 19:28:32 +00:00
2010-04-05 19:57:40 +01:00
2010-07-06 10:36:28 -05:00
2010-04-18 08:55:12 +00:00
2010-04-18 08:55:12 +00:00
2010-02-07 08:05:47 +00:00
2010-07-06 17:05:49 +02:00
2010-03-29 19:23:56 +00:00
2010-06-27 16:04:55 +00:00
2010-02-07 09:15:26 +00:00
2010-07-06 10:36:28 -05:00
2010-06-14 11:12:53 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-06-19 07:41:43 +00:00
2010-03-21 19:47:09 +00:00
2010-05-22 08:00:52 +00:00
2010-07-06 10:36:27 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:27 -05:00
2010-03-27 07:26:16 +00:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-02-07 08:05:03 +00:00
2010-06-30 20:41:36 +02:00
2010-06-30 20:41:37 +02:00
2010-06-30 20:41:37 +02:00
2010-03-23 09:59:54 +01:00
2010-03-21 19:47:15 +00:00
2009-12-23 16:35:00 +02:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-03-21 19:47:11 +00:00
2010-02-14 16:10:54 +02:00
2010-05-18 21:12:54 +02:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-04-05 19:57:40 +01:00
2010-07-06 10:36:28 -05:00
2010-04-09 22:06:22 +02:00
2010-04-09 22:06:22 +02:00
2010-07-06 10:36:28 -05:00
2010-04-13 20:17:24 +02:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-06-13 23:37:31 +01:00
2010-04-04 21:18:26 +01:00
2010-03-31 11:16:52 -05:00
2010-04-08 11:11:21 +02:00
2010-07-06 10:36:28 -05:00
2010-07-06 10:36:28 -05:00
2010-04-01 13:56:43 -05:00
2010-04-14 00:12:04 +02:00
2010-04-01 13:56:43 -05:00
2010-07-06 10:36:28 -05:00
2010-06-13 19:00:50 +01:00
2010-05-12 18:07:54 +03:00
2010-07-06 10:36:28 -05:00
2010-02-03 19:47:34 -02:00
2010-03-09 08:47:27 -06:00
2010-06-13 19:00:50 +01:00
2010-07-06 10:36:28 -05:00