On 4/24/25 19:16, Bibo Mao wrote:
With load_elf() api, image load low address and high address is converted
to physical address if parameter translate_fn is provided. However
executing entry address is still virtual address. Here convert entry
address into physical address, since MMU is disabled when system power on,
the first PC instruction should be physical address.
Signed-off-by: Bibo Mao<maob...@loongson.cn>
---
v1 ... v2:
1. Only modify LoongArch specified rather than load_elf() API, since
there is be potential influence with other architectures.
---
hw/loongarch/boot.c | 1 +
1 file changed, 1 insertion(+)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
Although perhaps we should adjust the API because all users have to do exactly this, and
it's easy to miss.
r~