qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 2/2] hw/xtensa/xtfpga: treat uImage load address


From: Max Filippov
Subject: [Qemu-devel] [PATCH v2 2/2] hw/xtensa/xtfpga: treat uImage load address as virtual
Date: Sun, 19 Oct 2014 09:04:01 +0400

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: address@hidden
Reported-by: Waldemar Brodkorb <address@hidden>
Signed-off-by: Max Filippov <address@hidden>
---
Changes v1->v2:
- use translate_phys_addr with the new load_uimage interface.

 hw/xtensa/xtfpga.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c
index 3c2f409..02ab824 100644
--- a/hw/xtensa/xtfpga.c
+++ b/hw/xtensa/xtfpga.c
@@ -328,7 +328,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 {
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]