Peter Maydell a113aef998 hw/arm/mps2-tz: Get armv7m_load_kernel() size argument from RAMInfo
The armv7m_load_kernel() function takes a mem_size argument which it
expects to be the size of the memory region at guest address 0.  (It
uses this argument only as a limit on how large a raw image file it
can load at address zero).

Instead of hardcoding this value, find the RAMInfo corresponding to
the 0 address and extract its size.

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: 20210215115138.20465-20-peter.maydell@linaro.org
2021-03-06 13:30:39 +00:00
..
2020-08-28 15:14:40 +01:00
2020-12-10 12:15:07 -05:00
2020-12-15 12:51:55 -05:00
2020-12-10 12:15:04 -05:00
2021-02-11 11:50:14 +00:00
2021-03-05 15:17:34 +00:00
2020-12-08 13:48:57 -05:00
2020-03-05 12:18:16 -05:00
2020-10-27 11:10:44 +00:00
2021-02-05 08:52:59 -05:00