]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Use aarch64_cpu_register() for 'host' CPU type
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 4 Feb 2022 16:55:02 +0000 (16:55 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Feb 2022 13:30:20 +0000 (13:30 +0000)
commit73cc9ee6bfadcdbd079cf4871179ef5760146d1c
tree64fb71dc850e96d2f6dccd002cd235006ae86eda
parentdcfb1d0476559cabe45ffbfb1d7667909ab309c2
target/arm: Use aarch64_cpu_register() for 'host' CPU type

Use the aarch64_cpu_register() machinery to register the 'host' CPU
type.  This doesn't gain us anything functionally, but it does mean
that the code for initializing it looks more like that for the other
CPU types, in that its initfn then doesn't need to call
arm_cpu_post_init() (because aarch64_cpu_instance_init() does that
for it).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220204165506.2846058-3-peter.maydell@linaro.org
target/arm/cpu64.c