aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2017-06-09 12:06:21 -0300
committerMichael Tokarev <mjt@tls.msk.ru>2017-07-11 11:18:37 +0300
commit667675623dc20b8d2f9ec2eff8a1c7eafcc86e19 (patch)
tree20a7553e1882dfcfa1082826326924a07ab90839 /hw
parent8f7b1bd6ceec07bf64a70d1a46c45cb45658af2d (diff)
downloadqemu-667675623dc20b8d2f9ec2eff8a1c7eafcc86e19.zip
qemu-667675623dc20b8d2f9ec2eff8a1c7eafcc86e19.tar.gz
qemu-667675623dc20b8d2f9ec2eff8a1c7eafcc86e19.tar.bz2
hw/pci: define msi_nonbroken in pci-stub
The kludged field 'msi_nonbroken' is declared in "hw/pci/msi.h" and defined in hw/pci/msi.c. When using an ARM config with CONFIG_PCI disabled, hw/pci/msi.c is not included. Without being PCI-related, the files hw/intc/arm_gicv[23*].c do access this field (to enable the kludge if PCI is enabled). The final link fails since hw/pci/msi.c is not included. Defining this field in pci-stub is safe enough for configs without CONFIG_PCI. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw')
-rw-r--r--hw/pci/pci-stub.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/pci/pci-stub.c b/hw/pci/pci-stub.c
index 36d2c43..ecad664 100644
--- a/hw/pci/pci-stub.c
+++ b/hw/pci/pci-stub.c
@@ -24,6 +24,9 @@
#include "qapi/qmp/qerror.h"
#include "hw/pci/pci.h"
#include "qmp-commands.h"
+#include "hw/pci/msi.h"
+
+bool msi_nonbroken;
PciInfoList *qmp_query_pci(Error **errp)
{