On 10/12/25 14:21, Anton Johansson wrote:
Changes kernel_start_addr from target_ulong to vaddr. Logically, the
argument represents a virtual address at which to load the kernel image,
which gets treated as a hwaddr as a fallback if elf and uimage loading
fails.

Suggested-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Anton Johansson <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

---
v2: Updated callers of riscv_load_kernel() to use vaddr, changed return
     type of riscv_calc_kernel_start_addr().

---
  include/hw/riscv/boot.h    | 6 +++---
  hw/riscv/boot.c            | 6 +++---
  hw/riscv/microchip_pfsoc.c | 3 ++-
  hw/riscv/sifive_u.c        | 3 ++-
  hw/riscv/spike.c           | 2 +-
  hw/riscv/virt.c            | 3 ++-
  6 files changed, 13 insertions(+), 10 deletions(-)

LGTM, thanks!

Reply via email to