diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-12 23:56:14 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2025-01-27 12:58:26 +0000 |
| commit | deeb9969357d377110ac61fe3c6482c7303313ae (patch) | |
| tree | 4039b34c0cc150d2290eff48a1e060809d7e8d14 /hw/arm/stellaris.c | |
| parent | 19266bec2770f40baa6f17d9a7d84d0fd9211a2e (diff) | |
| download | focaccia-qemu-deeb9969357d377110ac61fe3c6482c7303313ae.tar.gz focaccia-qemu-deeb9969357d377110ac61fe3c6482c7303313ae.zip | |
hw/arm/v7m: Remove use of &first_cpu in machine_init()
When instanciating the machine model, the machine_init() implementations usually create the CPUs, so have access to its first CPU. Use that rather then the &first_cpu global. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Samuel Tardieu <sam@rfc1149.net> Message-id: 20250112225614.33723-4-philmd@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/stellaris.c')
| -rw-r--r-- | hw/arm/stellaris.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c index 7303e096ef..284980ad4b 100644 --- a/hw/arm/stellaris.c +++ b/hw/arm/stellaris.c @@ -1366,7 +1366,7 @@ static void stellaris_init(MachineState *ms, stellaris_board_info *board) create_unimplemented_device("hibernation", 0x400fc000, 0x1000); create_unimplemented_device("flash-control", 0x400fd000, 0x1000); - armv7m_load_kernel(ARM_CPU(first_cpu), ms->kernel_filename, 0, flash_size); + armv7m_load_kernel(ARMV7M(armv7m)->cpu, ms->kernel_filename, 0, flash_size); } /* FIXME: Figure out how to generate these from stellaris_boards. */ |