]> git.proxmox.com Git - mirror_qemu.git/commit - target/loongarch/cpu.c
target/loongarch: cpu: Implement get_arch_id callback
authorBibo Mao <maobibo@loongson.cn>
Thu, 24 Aug 2023 00:50:07 +0000 (08:50 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 24 Aug 2023 03:17:59 +0000 (11:17 +0800)
commit14f21f673a01cf3efa22a70256947fb9b6bbfdfa
tree33c5fffff727cbfb8f1cecfabcc4edf9190efda0
parenta380c6f11fd9f1ca96f204c4ae26c79e483ede8a
target/loongarch: cpu: Implement get_arch_id callback

Implement the callback for getting the architecture-dependent CPU
ID, the cpu ID is physical id described in ACPI MADT table, this
will be used for cpu hotplug.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20230824005007.2000525-1-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
hw/loongarch/virt.c
target/loongarch/cpu.c
target/loongarch/cpu.h