Re: [PATCH] hw/riscv: Respect firmware ELF entry point

2024-09-08 Thread Alistair Francis
On Sat, Aug 17, 2024 at 10:56 AM Samuel Holland wrote: > > When riscv_load_firmware() loads an ELF, the ELF segment addresses are > used, not the passed-in firmware_load_addr. The machine models assume > the firmware entry point is what they provided for firmware_load_addr, > and use that address

Re: [PATCH] hw/riscv: Respect firmware ELF entry point

2024-09-08 Thread Alistair Francis
On Sat, Aug 17, 2024 at 10:56 AM Samuel Holland wrote: > > When riscv_load_firmware() loads an ELF, the ELF segment addresses are > used, not the passed-in firmware_load_addr. The machine models assume > the firmware entry point is what they provided for firmware_load_addr, > and use that address

[PATCH] hw/riscv: Respect firmware ELF entry point

2024-08-16 Thread Samuel Holland
When riscv_load_firmware() loads an ELF, the ELF segment addresses are used, not the passed-in firmware_load_addr. The machine models assume the firmware entry point is what they provided for firmware_load_addr, and use that address to generate the boot ROM, so if the ELF is linked at any other add