]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/loongarch/virt: Add cpu arch_id support
authorTianrui Zhao <zhaotianrui@loongson.cn>
Tue, 16 May 2023 08:27:57 +0000 (16:27 +0800)
committerSong Gao <gaosong@loongson.cn>
Fri, 16 Jun 2023 09:58:42 +0000 (17:58 +0800)
commit8f30771ce61b0290fdb00b4cdbbc514723008a12
treea7778ed2bf6ccefc2897d985643c267efc9098fd
parent7efd65423ab22e6f5890ca08ae40c84d6660242f
hw/loongarch/virt: Add cpu arch_id support

With acpi madt table, there is cpu physical coreid, which may
be different with logical id in qemu. This patch adds cpu arch_id
support, and fill madt table with arch_id. For the present cpu
arch_id is still equal to logical id.

Reviewed-by: Song Gao <gaosong@loongson.cn>
Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20230613120552.2471420-2-zhaotianrui@loongson.cn>
hw/loongarch/acpi-build.c
hw/loongarch/virt.c