summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2014-10-19 08:39:10 +0400
committerMax Filippov <jcmvbkbc@gmail.com>2014-11-03 01:00:37 +0300
commit6d2e4530532ca1dbb5e68bdcca12e10931bc6503 (patch)
tree9608d206b1e3c85c290b9667ab53f641ba647b51
parent25bda50a0c7241dcb247483af2b7f961632020cc (diff)
downloadqemu-6d2e4530532ca1dbb5e68bdcca12e10931bc6503.tar.gz
qemu-6d2e4530532ca1dbb5e68bdcca12e10931bc6503.tar.bz2
qemu-6d2e4530532ca1dbb5e68bdcca12e10931bc6503.zip
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 <mail@waldemar-brodkorb.de> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
-rw-r--r--hw/xtensa/xtfpga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c
index a9b33bc4ee..e5a6bba783 100644
--- a/hw/xtensa/xtfpga.c
+++ b/hw/xtensa/xtfpga.c
@@ -329,7 +329,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 {