From f8c61ebdd2e59e14b6f07ee2fe3e8be011a067f1 Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Sun, 19 Oct 2014 08:39:10 +0400 Subject: 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: Waldemar Brodkorb Signed-off-by: Max Filippov (cherry picked from commit 6d2e4530532ca1dbb5e68bdcca12e10931bc6503) Signed-off-by: Michael Roth --- hw/xtensa/xtfpga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw') diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c index 937d01edfd..e60ff90d6b 100644 --- a/hw/xtensa/xtfpga.c +++ b/hw/xtensa/xtfpga.c @@ -326,7 +326,7 @@ static void lx_init(const LxBoardDesc *board, MachineState *machine) hwaddr ep; int is_linux; success = load_uimage(kernel_filename, &ep, NULL, &is_linux, - NULL, NULL); + translate_phys_addr, cpu); if (success > 0 && is_linux) { entry_point = ep; } else { -- cgit v1.2.1