On 6/9/22 11:02, 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 <suni...@ventanamicro.com>
Reviewed-by: Andrew Jones <ajo...@ventanamicro.com>
---
  hw/arm/boot.c             | 49 ---------------------------------------
  hw/loongarch/virt.c       | 33 --------------------------
  hw/nvram/fw_cfg.c         | 32 +++++++++++++++++++++++++
  include/hw/nvram/fw_cfg.h | 21 +++++++++++++++++
  4 files changed, 53 insertions(+), 82 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>


Reply via email to