hw/loongarch: Improve acpi dsdt table
authorXiaojuan Yang <yangxiaojuan@loongson.cn>
Thu, 25 Aug 2022 03:57:33 +0000 (11:57 +0800)
committerSong Gao <gaosong@loongson.cn>
Tue, 20 Sep 2022 07:44:25 +0000 (15:44 +0800)
commit1895b967922890f76ad0ba8eefad6019e0328606
tree8c27e98bb4d13c1ec55f10af7fb1307906298751
parentc3da26f314ad918ad36ca1373ea7c7f1aa036a87
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>
hw/loongarch/acpi-build.c
hw/loongarch/virt.c
include/hw/loongarch/virt.h