Re: [PATCH 19/24] hw/arm/mps2-tz: Get armv7m_load_kernel() size argument from RAMInfo

2021-02-12 Thread Philippe Mathieu-Daudé
On 2/5/21 6:00 PM, Peter Maydell wrote: > 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 ha

[PATCH 19/24] hw/arm/mps2-tz: Get armv7m_load_kernel() size argument from RAMInfo

2021-02-05 Thread Peter Maydell
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