提交 6d2e4530 编写于 作者: M Max Filippov

hw/xtensa/xtfpga: treat uImage load address as virtual

U-boot for xtensa always treats uImage load address as virtual address.
This is important when booting uImage on xtensa core with MMUv2, because
MMUv2 has fixed non-identity virtual-to-physical mapping after reset.

Always do virtual-to-physical translation of uImage load address and
load uImage at the translated address. This fixes booting uImage kernels
on dc232b and other MMUv2 cores.

Cc: qemu-stable@nongnu.org
Reported-by: NWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
上级 25bda50a
...@@ -329,7 +329,7 @@ static void lx_init(const LxBoardDesc *board, MachineState *machine) ...@@ -329,7 +329,7 @@ static void lx_init(const LxBoardDesc *board, MachineState *machine)
hwaddr ep; hwaddr ep;
int is_linux; int is_linux;
success = load_uimage(kernel_filename, &ep, NULL, &is_linux, success = load_uimage(kernel_filename, &ep, NULL, &is_linux,
NULL, NULL); translate_phys_addr, cpu);
if (success > 0 && is_linux) { if (success > 0 && is_linux) {
entry_point = ep; entry_point = ep;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册