]> git.proxmox.com Git - mirror_qemu.git/commit - hw/core/loader.c
hw/core/loader: implement address translation in uimage loader
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 19 Oct 2014 03:42:22 +0000 (07:42 +0400)
committerMax Filippov <jcmvbkbc@gmail.com>
Sun, 2 Nov 2014 21:59:10 +0000 (00:59 +0300)
commit25bda50a0c7241dcb247483af2b7f961632020cc
tree513752bed41420a65b2bf8b46b7d6cfe60745f59
parentc9e9521fcb840b14ec0ae9117b224ff8a71418da
hw/core/loader: implement address translation in uimage loader

Such address translation is needed when load address recorded in uImage
is a virtual address. When the actual load address is requested, return
untranslated address: user that needs the translated address can always
apply translation function to it and those that need it untranslated
don't need to do the inverse translation.

Add translation function pointer and its parameter to uimage_load
prototype. Update all existing users.

No user-visible functional changes.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
hw/arm/boot.c
hw/core/loader.c
hw/m68k/an5206.c
hw/m68k/dummy_m68k.c
hw/m68k/mcf5208.c
hw/microblaze/boot.c
hw/openrisc/openrisc_sim.c
hw/ppc/e500.c
hw/ppc/ppc440_bamboo.c
hw/xtensa/xtfpga.c
include/hw/loader.h