summary refs log tree commit diff stats
path: root/hw/arm/virt.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-02-07 16:09:18 +0000
committerPeter Maydell <peter.maydell@linaro.org>2025-02-07 16:09:18 +0000
commitcbb95d496810023a485a3cfc1a096733b055ce89 (patch)
treeaa315f8efaf39511305d9f8d8c43ab6ae35ac7f7 /hw/arm/virt.c
parent7623676948d35cdbb31fd976f96277e3f1673e52 (diff)
downloadfocaccia-qemu-cbb95d496810023a485a3cfc1a096733b055ce89.tar.gz
focaccia-qemu-cbb95d496810023a485a3cfc1a096733b055ce89.zip
hw/arm/boot: Propagate vCPU to arm_load_dtb()
In heterogeneous setup the first vCPU might not be
the one expected, better pass it explicitly.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20250130112615.3219-2-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/virt.c')
-rw-r--r--hw/arm/virt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 99e0a68b6c..d23b14718a 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -1746,7 +1746,7 @@ void virt_machine_done(Notifier *notifier, void *data)
                                        vms->memmap[VIRT_PLATFORM_BUS].size,
                                        vms->irqmap[VIRT_PLATFORM_BUS]);
     }
-    if (arm_load_dtb(info->dtb_start, info, info->dtb_limit, as, ms) < 0) {
+    if (arm_load_dtb(info->dtb_start, info, info->dtb_limit, as, ms, cpu) < 0) {
         exit(1);
     }