aboutsummaryrefslogtreecommitdiff
path: root/include/hw/arm
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-01-25 06:55:43 +0100
committerCédric Le Goater <clg@kaod.org>2024-02-01 08:13:30 +0100
commitd815649c512fc785508315ead66a43385cf55bfb (patch)
tree75d6ad79ea6622f8673d865ea922a859519ac0a7 /include/hw/arm
parent43a0a5c9950edc2e194ef21c2deacc16df37179d (diff)
downloadqemu-d815649c512fc785508315ead66a43385cf55bfb.zip
qemu-d815649c512fc785508315ead66a43385cf55bfb.tar.gz
qemu-d815649c512fc785508315ead66a43385cf55bfb.tar.bz2
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 'include/hw/arm')
-rw-r--r--include/hw/arm/aspeed_soc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/arm/aspeed_soc.h b/include/hw/arm/aspeed_soc.h
index cb832bc..a060a59 100644
--- a/include/hw/arm/aspeed_soc.h
+++ b/include/hw/arm/aspeed_soc.h
@@ -143,6 +143,7 @@ struct AspeedSoCClass {
qemu_irq (*get_irq)(AspeedSoCState *s, int dev);
};
+const char *aspeed_soc_cpu_type(AspeedSoCClass *sc);
enum {
ASPEED_DEV_SPI_BOOT,