unicorn/qemu
Peter Crosthwaite edbc6f199c
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.

Backports commit 23820dbfc79d1c9dce090b4c555994f2bb6a69b3 from qemu
2018-02-12 21:05:31 -05:00
..
default-configs
docs
fpu
hw
include target-arm: Add user-mode transaction attribute 2018-02-12 20:41:58 -05:00
qapi This code should now build the x86_x64-softmmu part 2. 2017-01-19 22:50:28 +11:00
qobject
qom
scripts
target-arm Allow ARMv8 SCR.SMD updates 2018-02-12 20:48:34 -05:00
target-i386 target-i386: Remove AMD feature flag aliases from CPU model table 2018-02-12 20:55:52 -05:00
target-m68k
target-mips
target-sparc
tcg
util
aarch64.h exec.c: Add new address_space_ld*/st* functions 2018-02-12 19:22:47 -05:00
aarch64eb.h exec.c: Add new address_space_ld*/st* functions 2018-02-12 19:22:47 -05:00
accel.c
arm.h exec.c: Add new address_space_ld*/st* functions 2018-02-12 19:22:47 -05:00
armeb.h exec.c: Add new address_space_ld*/st* functions 2018-02-12 19:22:47 -05:00
CODING_STYLE
configure
COPYING
COPYING.LIB
cpu-exec.c
cpus.c
cputlb.c
exec.c exec: Respect as_translate_internal length clamp 2018-02-12 21:05:31 -05:00
gen_all_header.sh
glib_compat.c
HACKING
header_gen.py exec.c: Add new address_space_ld*/st* functions 2018-02-12 19:22:47 -05:00
ioport.c
LICENSE
m68k.h exec.c: Add new address_space_ld*/st* functions 2018-02-12 19:22:47 -05:00
Makefile
Makefile.objs
Makefile.target
memory.c
memory_mapping.c
mips.h exec.c: Add new address_space_ld*/st* functions 2018-02-12 19:22:47 -05:00
mips64.h exec.c: Add new address_space_ld*/st* functions 2018-02-12 19:22:47 -05:00
mips64el.h exec.c: Add new address_space_ld*/st* functions 2018-02-12 19:22:47 -05:00
mipsel.h exec.c: Add new address_space_ld*/st* functions 2018-02-12 19:22:47 -05:00
powerpc.h exec.c: Add new address_space_ld*/st* functions 2018-02-12 19:22:47 -05:00
qapi-schema.json
qemu-log.c
qemu-timer.c
rules.mak
softmmu_template.h
sparc.h exec.c: Add new address_space_ld*/st* functions 2018-02-12 19:22:47 -05:00
sparc64.h exec.c: Add new address_space_ld*/st* functions 2018-02-12 19:22:47 -05:00
tcg-runtime.c
translate-all.c
translate-all.h
unicorn_common.h
VERSION
vl.c
vl.h
x86_64.h exec.c: Add new address_space_ld*/st* functions 2018-02-12 19:22:47 -05:00