mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
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>
This commit is contained in:
parent
19266bec27
commit
deeb996935
11 changed files with 11 additions and 11 deletions
|
@ -590,7 +590,7 @@ static void musca_init(MachineState *machine)
|
|||
"cfg_sec_resp", 0));
|
||||
}
|
||||
|
||||
armv7m_load_kernel(ARM_CPU(first_cpu), machine->kernel_filename,
|
||||
armv7m_load_kernel(mms->sse.armv7m[0].cpu, machine->kernel_filename,
|
||||
0, 0x2000000);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue