hw/arm/armv7m: Honour CPU's address space for image loads
commit891f3bc37fb9dd81a27d19edc091be2603c9c176
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Mar 2018 10:45:36 +0000 (2 10:45 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Mar 2018 11:03:45 +0000 (2 11:03 +0000)
treec2c4d1f70eb3fef0b799a77047e284a403143941
parent9f43d4c34017df6bb5b6a13d43f941e90ec2d233
hw/arm/armv7m: Honour CPU's address space for image loads

Instead of loading guest images to the system address space, use the
CPU's address space.  This is important if we're trying to load the
file to memory or via an alias memory region that is provided by an
SoC object and thus not mapped into the system address space.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180220180325.29818-4-peter.maydell@linaro.org
hw/arm/armv7m.c