summary refs log tree commit diff stats
path: root/linux-user/qemu.h
diff options
context:
space:
mode:
authorIsaku Yamahata <isaku.yamahata@intel.com>2021-03-23 13:52:27 -0700
committerMichael S. Tsirkin <mst@redhat.com>2021-04-01 12:19:52 -0400
commit8ddf54324858ce5e35272efa449f27fc0a19f957 (patch)
tree23e64d7c64bf373614baabde35b47fb5b6c2be4a /linux-user/qemu.h
parent44421c60c93f78a6d83358e57f22e8f0c1993dba (diff)
downloadfocaccia-qemu-8ddf54324858ce5e35272efa449f27fc0a19f957.tar.gz
focaccia-qemu-8ddf54324858ce5e35272efa449f27fc0a19f957.zip
pci: sprinkle assert in PCI pin number
If a device model
(a) doesn't set the value to a correct interrupt number and then
(b) triggers an interrupt for itself,
it's device model bug. Add assert on interrupt pin number to catch
this kind of bug more obviously.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
Message-Id: <9cf8ac3b17e162daac0971d7be32deb6a33ae6ec.1616532563.git.isaku.yamahata@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'linux-user/qemu.h')
0 files changed, 0 insertions, 0 deletions