Re: [PATCH V2 1/3] hw/arm,loongarch: Move load_image_to_fw_cfg() to common location

2022-09-05 Thread Sunil V L
On Mon, Sep 05, 2022 at 10:20:40PM +0100, Peter Maydell wrote: > On Mon, 5 Sept 2022 at 19:23, Sunil V L wrote: > > > > load_image_to_fw_cfg() is duplicated by both arm and loongarch. The same > > function will be required by riscv too. So, it's time to refactor and > > move this function to a com

Re: [PATCH V2 1/3] hw/arm,loongarch: Move load_image_to_fw_cfg() to common location

2022-09-05 Thread Peter Maydell
On Mon, 5 Sept 2022 at 19:23, Sunil V L wrote: > > load_image_to_fw_cfg() is duplicated by both arm and loongarch. The same > function will be required by riscv too. So, it's time to refactor and > move this function to a common path. > > Signed-off-by: Sunil V L > --- > hw/arm/boot.c

[PATCH V2 1/3] hw/arm, loongarch: Move load_image_to_fw_cfg() to common location

2022-09-05 Thread Sunil V L
load_image_to_fw_cfg() is duplicated by both arm and loongarch. The same function will be required by riscv too. So, it's time to refactor and move this function to a common path. Signed-off-by: Sunil V L --- hw/arm/boot.c | 49 --- hw/loongarch/vi