diff options
| author | Xiaojuan Yang <yangxiaojuan@loongson.cn> | 2022-08-25 11:57:33 +0800 |
|---|---|---|
| committer | Song Gao <gaosong@loongson.cn> | 2022-09-20 15:44:25 +0800 |
| commit | 1895b967922890f76ad0ba8eefad6019e0328606 (patch) | |
| tree | 8c27e98bb4d13c1ec55f10af7fb1307906298751 /hw/loongarch/virt.c | |
| parent | c3da26f314ad918ad36ca1373ea7c7f1aa036a87 (diff) | |
| download | focaccia-qemu-1895b967922890f76ad0ba8eefad6019e0328606.tar.gz focaccia-qemu-1895b967922890f76ad0ba8eefad6019e0328606.zip | |
hw/loongarch: Improve acpi dsdt table
Cleanup the previous pci information in acpi dsdt table. And using the common acpi_dsdt_add_gpex function to build the gpex and pci information. Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn> Acked-by: Song Gao <gaosong@loongson.cn> Message-Id: <20220908094623.73051-10-yangxiaojuan@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'hw/loongarch/virt.c')
| -rw-r--r-- | hw/loongarch/virt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/loongarch/virt.c b/hw/loongarch/virt.c index fe175e873b..29df99727d 100644 --- a/hw/loongarch/virt.c +++ b/hw/loongarch/virt.c @@ -387,6 +387,7 @@ static void loongarch_devices_init(DeviceState *pch_pic, LoongArchMachineState * d = SYS_BUS_DEVICE(gpex_dev); sysbus_realize_and_unref(d, &error_fatal); pci_bus = PCI_HOST_BRIDGE(gpex_dev)->bus; + lams->pci_bus = pci_bus; /* Map only part size_ecam bytes of ECAM space */ ecam_alias = g_new0(MemoryRegion, 1); |