]> www.infradead.org Git - users/dwmw2/qemu.git/commit
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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 7 Jan 2015 00:39:10 +0000 (18:39 -0600)
commitc448fb76516c2397e9d6f65ef8aa13c2236e56eb
tree86b88d46043aedfb0d0a31d3ef0a7ff01e5633a9
parent8239a583c15df4bf929429e7e3a856accc643c4e
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>
(cherry picked from commit 25bda50a0c7241dcb247483af2b7f961632020cc)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
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