hw/arm, loongarch: Move load_image_to_fw_cfg() to common location
commit785a7383dd4832cc772a2c5483bd6fa40ee51302
authorSunil V L <sunilvl@ventanamicro.com>
Tue, 4 Oct 2022 09:23:49 +0000 (4 14:53 +0530)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 14 Oct 2022 04:29:50 +0000 (14 14:29 +1000)
treea1d65af658237084968eee752ecf4799e66abdda
parent6c1876958bbb53396655777401ab34207d0e1afa
hw/arm, loongarch: Move load_image_to_fw_cfg() to common location

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 <sunilvl@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20221004092351.18209-2-sunilvl@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/arm/boot.c
hw/loongarch/virt.c
hw/nvram/fw_cfg.c
include/hw/nvram/fw_cfg.h