From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9H01-0004E1-Fb for qemu-devel@nongnu.org; Thu, 08 Jan 2015 12:36:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9Gzn-0006l0-D1 for qemu-devel@nongnu.org; Thu, 08 Jan 2015 12:35:57 -0500 Received: from e8.ny.us.ibm.com ([32.97.182.138]:43746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Gzn-0006kg-2Y for qemu-devel@nongnu.org; Thu, 08 Jan 2015 12:35:43 -0500 Received: from /spool/local by e8.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 8 Jan 2015 12:35:42 -0500 From: Michael Roth Date: Thu, 8 Jan 2015 11:33:58 -0600 Message-Id: <1420738472-23267-55-git-send-email-mdroth@linux.vnet.ibm.com> In-Reply-To: <1420738472-23267-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1420738472-23267-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 54/88] hw/xtensa/xtfpga: treat uImage load address as virtual List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org From: Max Filippov 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(-) diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c index 937d01e..e60ff90 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 { -- 1.9.1