]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/xtensa/xtfpga: treat uImage load address as virtual
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 19 Oct 2014 04:39:10 +0000 (08:39 +0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 7 Jan 2015 00:39:24 +0000 (18:39 -0600)
commitf8c61ebdd2e59e14b6f07ee2fe3e8be011a067f1
tree7fe5378aa3c9488099f8e7cc59eee2d6f0fbf0e8
parentc448fb76516c2397e9d6f65ef8aa13c2236e56eb
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>
(cherry picked from commit 6d2e4530532ca1dbb5e68bdcca12e10931bc6503)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/xtensa/xtfpga.c