aboutsummaryrefslogtreecommitdiff
path: root/hw/pci-host
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-12-31 22:04:13 +0100
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-01-04 23:24:44 +0100
commitb4bb339b3ddb24601b5f914fb0bc7275a69d2c94 (patch)
tree5835bd675014983db27d96b6d3d1d33eb342c5cd /hw/pci-host
parentce3f3d3027078939f2b38cd0d371d44ba8a29026 (diff)
downloadqemu-b4bb339b3ddb24601b5f914fb0bc7275a69d2c94.zip
qemu-b4bb339b3ddb24601b5f914fb0bc7275a69d2c94.tar.gz
qemu-b4bb339b3ddb24601b5f914fb0bc7275a69d2c94.tar.bz2
hw/pci-host/bonito: Use pci_config_set_interrupt_pin()
Replace pci_set_byte(PCI_INTERRUPT_PIN) by pci_config_set_interrupt_pin(). Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Huacai Chen <chenhuacai@kernel.org> Message-Id: <20201231224911.1467352-5-f4bug@amsat.org>
Diffstat (limited to 'hw/pci-host')
-rw-r--r--hw/pci-host/bonito.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/pci-host/bonito.c b/hw/pci-host/bonito.c
index c2f71e5..2a2db7c 100644
--- a/hw/pci-host/bonito.c
+++ b/hw/pci-host/bonito.c
@@ -728,7 +728,8 @@ static void bonito_realize(PCIDevice *dev, Error **errp)
pci_set_word(dev->config + PCI_SUBSYSTEM_ID, 0x0000);
pci_set_byte(dev->config + PCI_INTERRUPT_LINE, 0x00);
- pci_set_byte(dev->config + PCI_INTERRUPT_PIN, 0x01);
+ pci_config_set_interrupt_pin(dev->config, 0x01); /* interrupt pin A */
+
pci_set_byte(dev->config + PCI_MIN_GNT, 0x3c);
pci_set_byte(dev->config + PCI_MAX_LAT, 0x00);