diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-02-13 06:24:04 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-02-15 16:58:46 +0100 |
| commit | be02150167044e34d3c5ec5d9e84e8470e9a8166 (patch) | |
| tree | bc74faacbd26f98ef1ce2f50e9ff4c81679cfc52 /hw/ide/ich.c | |
| parent | 44c11b2e69d845e487d0184079899ef15ab626a5 (diff) | |
| download | focaccia-qemu-be02150167044e34d3c5ec5d9e84e8470e9a8166.tar.gz focaccia-qemu-be02150167044e34d3c5ec5d9e84e8470e9a8166.zip | |
hw/ide/ahci: Do not pass 'ports' argument to ahci_realize()
Explicitly set AHCIState::ports before calling ahci_realize(). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240213081201.78951-8-philmd@linaro.org>
Diffstat (limited to 'hw/ide/ich.c')
| -rw-r--r-- | hw/ide/ich.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/ide/ich.c b/hw/ide/ich.c index d190012a95..122fc7e0ab 100644 --- a/hw/ide/ich.c +++ b/hw/ide/ich.c @@ -113,7 +113,8 @@ static void pci_ich9_ahci_realize(PCIDevice *dev, Error **errp) d = ICH9_AHCI(dev); int ret; - ahci_realize(&d->ahci, DEVICE(dev), pci_get_address_space(dev), 6); + d->ahci.ports = 6; + ahci_realize(&d->ahci, DEVICE(dev), pci_get_address_space(dev)); pci_config_set_prog_interface(dev->config, AHCI_PROGMODE_MAJOR_REV_1); |