mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
hw/arm/aspeed: Introduce aspeed_soc_cpu_type() helper
In order to alter AspeedSoCClass::cpu_type in the next commit, introduce the aspeed_soc_cpu_type() helper to retrieve the per-SoC CPU type from AspeedSoCClass. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Gavin Shan <gshan@redhat.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
43a0a5c995
commit
d815649c51
5 changed files with 11 additions and 3 deletions
|
@ -158,7 +158,8 @@ static void aspeed_soc_ast2600_init(Object *obj)
|
|||
}
|
||||
|
||||
for (i = 0; i < sc->num_cpus; i++) {
|
||||
object_initialize_child(obj, "cpu[*]", &a->cpu[i], sc->cpu_type);
|
||||
object_initialize_child(obj, "cpu[*]", &a->cpu[i],
|
||||
aspeed_soc_cpu_type(sc));
|
||||
}
|
||||
|
||||
snprintf(typename, sizeof(typename), "aspeed.scu-%s", socname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue