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