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 <[email protected]>
Reviewed-by: Andrew Jones <[email protected]>
---
  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é <[email protected]>


Reply via email to