diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-10-25 08:59:09 +0200 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2023-10-27 12:50:12 +0100 |
| commit | f0109f721e8994deabd35b69d96d6d0bdfec0425 (patch) | |
| tree | 3991e16428a074770a08caae9879fa1448c17d0b /hw/arm/realview.c | |
| parent | bf348bf9ab5459004927873c37e79f2040887d22 (diff) | |
| download | focaccia-qemu-f0109f721e8994deabd35b69d96d6d0bdfec0425.tar.gz focaccia-qemu-f0109f721e8994deabd35b69d96d6d0bdfec0425.zip | |
hw/arm: Avoid using 'first_cpu' when first ARM CPU is reachable
Prefer using a well known local first CPU rather than a global one. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20231025065909.57344-1-philmd@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/realview.c')
| -rw-r--r-- | hw/arm/realview.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/realview.c b/hw/arm/realview.c index 8f89526596..132217b2ed 100644 --- a/hw/arm/realview.c +++ b/hw/arm/realview.c @@ -384,7 +384,7 @@ static void realview_init(MachineState *machine, realview_binfo.ram_size = ram_size; realview_binfo.board_id = realview_board_id[board_type]; realview_binfo.loader_start = (board_type == BOARD_PB_A8 ? 0x70000000 : 0); - arm_load_kernel(ARM_CPU(first_cpu), machine, &realview_binfo); + arm_load_kernel(cpu, machine, &realview_binfo); } static void realview_eb_init(MachineState *machine) |