summary refs log tree commit diff stats
path: root/docs/sphinx
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2021-04-09 16:05:27 +0100
committerPeter Maydell <peter.maydell@linaro.org>2021-04-12 15:57:38 +0100
commit91c0a79891b080efea276caf6bd3ff10809c4e4c (patch)
tree56d5b7925c9f51a9adb576f928b8daa2ab3115c3 /docs/sphinx
parentdb2fc83aa45a391fa0eb9caa2728f5aa9225d4cc (diff)
downloadfocaccia-qemu-91c0a79891b080efea276caf6bd3ff10809c4e4c.tar.gz
focaccia-qemu-91c0a79891b080efea276caf6bd3ff10809c4e4c.zip
hw/arm/mps2-tz: Assert if more than one RAM is attached to an MPC
Each board in mps2-tz.c specifies a RAMInfo[] array providing
information about each RAM in the board.  The .mpc field of the
RAMInfo struct specifies which MPC, if any, the RAM is attached to.
We already assert if the array doesn't have any entry for an MPC, but
we don't diagnose the error of using the same MPC number twice (which
is quite easy to do by accident if copy-and-pasting structure
entries).

Enhance find_raminfo_for_mpc() so that it detects multiple entries
for the MPC as well as missing entries.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210409150527.15053-3-peter.maydell@linaro.org
Diffstat (limited to 'docs/sphinx')
0 files changed, 0 insertions, 0 deletions