hw/arm: versal-virt: Always call arm_load_kernel()
cover hw/arm: versal-virt: Always call arm_load_kernel()
From: "Edgar E. Iglesias" <[email protected]>
This should be applied on top of Peter Maydell's "arm: Fix handling of unrecognized functions in PSCI emulation" patch series.
This fixes an issue reported by Peter Maydell. We should always call arm_load_kernel() regardless of kernel_filename being set. This is needed because arm_load_kernel() sets up reset for the CPUs.
Cheers,
Edgar
Edgar E. Iglesias (1):
hw/arm: versal-virt: Always call arm_load_kernel()
hw/arm/xlnx-versal-virt.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
Signature · 1 line
2.25.1
PATCH 1/1 hw/arm: versal-virt: Always call arm_load_kernel()
From: "Edgar E. Iglesias" <[email protected]>
Always call arm_load_kernel() regardless of kernel_filename being set. This is needed because arm_load_kernel() sets up reset for the CPUs.
--- hw/arm/xlnx-versal-virt.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
hw/arm/xlnx-versal-virt.c +2 -9
@@ -681,20 +681,13 @@ static void versal_virt_init(MachineState *machine) s->binfo.get_dtb = versal_virt_get_dtb; s->binfo.modify_dtb = versal_virt_modify_dtb; s->binfo.psci_conduit = psci_conduit; -if (machine->kernel_filename) { -arm_load_kernel (&s->soc.fpd.apu.cpu[0 ], machine, &s->binfo); - }else { -AddressSpace *as =arm_boot_address_space (&s->soc.fpd.apu.cpu[0 ], - &s->binfo); +if (!machine->kernel_filename) {/* Some boot-loaders (e.g u-boot) don't like blobs at address 0 (NULL). * Offset things by 4K. */ s->binfo.loader_start =0x1000 ; s->binfo.dtb_limit =0x1000000 ; -if (arm_load_dtb (s->binfo.loader_start, - &s->binfo, s->binfo.dtb_limit, as, machine) <0 ) { -exit (EXIT_FAILURE ); - } } +arm_load_kernel (&s->soc.fpd.apu.cpu[0 ], machine, &s->binfo);for (i =0 ; i <XLNX_VERSAL_NUM_OSPI_FLASH ; i++) {BusState *spi_bus;
Signature · 1 line
2.25.1
Peter Maydell
AppliedQuoted 11 lines · Edgar E. Iglesias
From: "Edgar E. Iglesias" <[email protected]>
This should be applied on top of Peter Maydell's "arm: Fix handling of unrecognized functions in PSCI emulation" patch series.
This fixes an issue reported by Peter Maydell. We should always call
arm_load_kernel()regardless ofkernel_filenamebeing set. This is needed becausearm_load_kernel()sets up reset for the CPUs.
Applied to target-arm.next, thanks.
-- PMM