qemu/pci: clarify pci config load routine
commit05fcfada5e45b900c32ca6bccf0ce52cb5422509
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 5 Oct 2009 20:46:11 +0000 (5 22:46 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 6 Oct 2009 19:36:13 +0000 (6 14:36 -0500)
treec72bc7bbac6624fc5da53897fc8bc18b5e600853
parentdc1c9fe8b759d4e70222d8f94838a6f6ef5c4ef1
qemu/pci: clarify pci config load routine

PCI load routine has to be called with size equal to 256 (otherwise it
will crash in weird ways).  So assert this, making code clearer.
Also avoid dynamically sized array on stack - good for portability.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Cc: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pci.c