From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XH3bo-0006h8-6N for qemu-devel@nongnu.org; Tue, 12 Aug 2014 00:23:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XH3bf-00019A-1o for qemu-devel@nongnu.org; Tue, 12 Aug 2014 00:22:52 -0400 Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]:60542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XH3be-00018r-Od for qemu-devel@nongnu.org; Tue, 12 Aug 2014 00:22:42 -0400 Received: by mail-lb0-f173.google.com with SMTP id u10so4675354lbd.18 for ; Mon, 11 Aug 2014 21:22:41 -0700 (PDT) From: Max Filippov Date: Tue, 12 Aug 2014 08:22:19 +0400 Message-Id: <1407817342-1373-1-git-send-email-jcmvbkbc@gmail.com> Subject: [Qemu-devel] [PATCH 0/3] target-xtensa: fix loading uImage kernels on MMUv2 cores List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Max Filippov , Waldemar Brodkorb Hi, this series fixes loading uImage kernels on MMUv2 xtensa cores. 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. I add two new functions: load_uboot_image_header that loads uImage header and load_uimage_at that loads uImage at the specified address, and use them to query uImage load address and load uImage at the correctly translated address. Max Filippov (3): hw/core/loader: implement load_uboot_image_header hw/core/loader: implement load_uimage_at target-xtensa: treat uImage load address as virtual hw/core/loader.c | 62 +++++++++++++++++++++++++++++++++++++++++------------ hw/xtensa/xtfpga.c | 9 +++++++- include/hw/loader.h | 4 ++++ 3 files changed, 60 insertions(+), 15 deletions(-) -- 1.8.1.4