diff options
author | Peter Maydell | 2022-04-04 17:46:43 +0200 |
---|---|---|
committer | Peter Maydell | 2022-04-21 12:37:03 +0200 |
commit | 5b2417288e9bdd437685725cd432692ed8f104e4 (patch) | |
tree | 1933f0f41cc99c175727768495729c7265b0b296 /include/hw/arm | |
parent | hw/intc/exynos4210_gic: Remove unused TYPE_EXYNOS4210_IRQ_GATE (diff) | |
download | qemu-5b2417288e9bdd437685725cd432692ed8f104e4.tar.gz qemu-5b2417288e9bdd437685725cd432692ed8f104e4.tar.xz qemu-5b2417288e9bdd437685725cd432692ed8f104e4.zip |
hw/arm/exynos4210: Put a9mpcore device into state struct
The exynos4210 SoC mostly creates its child devices as if it were
board code. This includes the a9mpcore object. Switch that to a
new-style "embedded in the state struct" creation, because in the
next commit we're going to want to refer to the object again further
down in the exynos4210_realize() function.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220404154658.565020-4-peter.maydell@linaro.org
Diffstat (limited to 'include/hw/arm')
-rw-r--r-- | include/hw/arm/exynos4210.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/arm/exynos4210.h b/include/hw/arm/exynos4210.h index 3999034053..215c039b41 100644 --- a/include/hw/arm/exynos4210.h +++ b/include/hw/arm/exynos4210.h @@ -26,6 +26,7 @@ #include "hw/or-irq.h" #include "hw/sysbus.h" +#include "hw/cpu/a9mpcore.h" #include "target/arm/cpu-qom.h" #include "qom/object.h" @@ -103,6 +104,7 @@ struct Exynos4210State { I2CBus *i2c_if[EXYNOS4210_I2C_NUMBER]; qemu_or_irq pl330_irq_orgate[EXYNOS4210_NUM_DMA]; qemu_or_irq cpu_irq_orgate[EXYNOS4210_NCPUS]; + A9MPPrivState a9mpcore; }; #define TYPE_EXYNOS4210_SOC "exynos4210" |