]> Git Repo - qemu.git/commit
hw/arm/mps2-tz: Get armv7m_load_kernel() size argument from RAMInfo
authorPeter Maydell <[email protected]>
Mon, 15 Feb 2021 11:51:33 +0000 (11:51 +0000)
committerPeter Maydell <[email protected]>
Sat, 6 Mar 2021 13:30:39 +0000 (13:30 +0000)
commita113aef998fe02154d2c95f34d38975648011dbb
tree197a7dea7f8a9de67812bbdc9d200dc43735e15a
parentb89918fceb4041466d8a98400f173fb583f74899
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 <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-id: 20210215115138[email protected]
hw/arm/mps2-tz.c
This page took 0.025497 seconds and 4 git commands to generate.