diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-25 06:55:43 +0100 |
|---|---|---|
| committer | Cédric Le Goater <clg@kaod.org> | 2024-02-01 08:13:30 +0100 |
| commit | d815649c512fc785508315ead66a43385cf55bfb (patch) | |
| tree | 75d6ad79ea6622f8673d865ea922a859519ac0a7 /hw/arm/aspeed_ast10x0.c | |
| parent | 43a0a5c9950edc2e194ef21c2deacc16df37179d (diff) | |
| download | focaccia-qemu-d815649c512fc785508315ead66a43385cf55bfb.tar.gz focaccia-qemu-d815649c512fc785508315ead66a43385cf55bfb.zip | |
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>
Diffstat (limited to 'hw/arm/aspeed_ast10x0.c')
| -rw-r--r-- | hw/arm/aspeed_ast10x0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/aspeed_ast10x0.c b/hw/arm/aspeed_ast10x0.c index 8becb146a8..dca601a3f9 100644 --- a/hw/arm/aspeed_ast10x0.c +++ b/hw/arm/aspeed_ast10x0.c @@ -211,7 +211,7 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp) /* AST1030 CPU Core */ armv7m = DEVICE(&a->armv7m); qdev_prop_set_uint32(armv7m, "num-irq", 256); - qdev_prop_set_string(armv7m, "cpu-type", sc->cpu_type); + qdev_prop_set_string(armv7m, "cpu-type", aspeed_soc_cpu_type(sc)); qdev_connect_clock_in(armv7m, "cpuclk", s->sysclk); object_property_set_link(OBJECT(&a->armv7m), "memory", OBJECT(s->memory), &error_abort); |