Re: [PATCH v2 2/4] hw/riscv: Return the end address of the loaded firmware

2020-10-19 Thread Bin Meng
On Wed, Oct 14, 2020 at 8:28 AM Alistair Francis wrote: > > Instead of returning the unused entry address from riscv_load_firmware() > instead return the end address. Also return the end address from > riscv_find_and_load_firmware(). > > This tells the caller if a firmware was loaded and how big i

Re: [PATCH v2 2/4] hw/riscv: Return the end address of the loaded firmware

2020-10-19 Thread Palmer Dabbelt
On Tue, 13 Oct 2020 17:17:28 PDT (-0700), Alistair Francis wrote: Instead of returning the unused entry address from riscv_load_firmware() instead return the end address. Also return the end address from riscv_find_and_load_firmware(). This tells the caller if a firmware was loaded and how big i

[PATCH v2 2/4] hw/riscv: Return the end address of the loaded firmware

2020-10-13 Thread Alistair Francis
Instead of returning the unused entry address from riscv_load_firmware() instead return the end address. Also return the end address from riscv_find_and_load_firmware(). This tells the caller if a firmware was loaded and how big it is. This can be used to determine the load address of the next ima