summaryrefslogtreecommitdiffstats
path: root/hw/pci/pci_bus.h
diff options
context:
space:
mode:
authorStefan Hajnoczi2013-03-11 10:20:21 +0100
committerMichael S. Tsirkin2013-03-26 20:02:17 +0100
commit49cd9ac6a1929467e2df5783a5183fc7708ec3ff (patch)
treebf504638c2c65b71604f5c7b87ce090acd608c44 /hw/pci/pci_bus.h
parentpci: refuse empty ROM files (diff)
downloadqemu-49cd9ac6a1929467e2df5783a5183fc7708ec3ff.tar.gz
qemu-49cd9ac6a1929467e2df5783a5183fc7708ec3ff.tar.xz
qemu-49cd9ac6a1929467e2df5783a5183fc7708ec3ff.zip
exec: assert that RAMBlock size is non-zero
find_ram_offset() does not handle size=0 gracefully. It hands out the same RAMBlock offset multiple times, leading to obscure failures later on. Add an assert to warn early if something is incorrectly allocating a zero size RAMBlock. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci/pci_bus.h')
0 files changed, 0 insertions, 0 deletions