qemu-riscv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH V4 1/3] hw/arm,loongarch: Move load_image_to_fw_cfg() to comm


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH V4 1/3] hw/arm,loongarch: Move load_image_to_fw_cfg() to common location
Date: Tue, 6 Sep 2022 15:32:27 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0

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 <sunilvl@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@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é <f4bug@amsat.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]