diff options
| author | Bibo Mao <maobibo@loongson.cn> | 2025-04-25 10:05:04 +0800 |
|---|---|---|
| committer | Bibo Mao <maobibo@loongson.cn> | 2025-05-06 09:17:32 +0800 |
| commit | 73047c825e25a18127dddb89eff0c0bf97a26aed (patch) | |
| tree | bc090cae5be1a8017ce94a315dead4ad875301ae /hw/intc | |
| parent | a41a74ca5323f4d30ac7eb48ec1d54a09fae5baa (diff) | |
| download | focaccia-qemu-73047c825e25a18127dddb89eff0c0bf97a26aed.tar.gz focaccia-qemu-73047c825e25a18127dddb89eff0c0bf97a26aed.zip | |
hw/loongarch/virt: Get physical entry address with elf file
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 <maobibo@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Tested-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'hw/intc')
0 files changed, 0 insertions, 0 deletions