summaryrefslogtreecommitdiffstats
path: root/hw/misc/slavio_misc.c
diff options
context:
space:
mode:
authorPeter Crosthwaite2015-03-17 06:35:54 +0100
committerPaolo Bonzini2015-04-27 18:24:19 +0200
commit23820dbfc79d1c9dce090b4c555994f2bb6a69b3 (patch)
tree55ed9c764b3a5b5fbf0ca7538c87372fffc4c7b0 /hw/misc/slavio_misc.c
parentioport: reserve the whole range of an I/O port in the AddressSpace (diff)
downloadqemu-23820dbfc79d1c9dce090b4c555994f2bb6a69b3.tar.gz
qemu-23820dbfc79d1c9dce090b4c555994f2bb6a69b3.tar.xz
qemu-23820dbfc79d1c9dce090b4c555994f2bb6a69b3.zip
exec: Respect as_translate_internal length clamp
address_space_translate_internal will clamp the *plen length argument based on the size of the memory region being queried. The iommu walker logic in addresss_space_translate was ignoring this by discarding the post fn call value of *plen. Fix by just always using *plen as the length argument throughout the fn, removing the len local variable. This fixes a bootloader bug when a single elf section spans multiple QEMU memory regions. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Message-Id: <1426570554-15940-1-git-send-email-peter.crosthwaite@xilinx.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/misc/slavio_misc.c')
0 files changed, 0 insertions, 0 deletions