mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-26 23:04:50 +00:00
feat(qemu-sbsa): mpidr needs to be present
Coverity Scan reminded that we need to take care of MPIDR properly. We need to make sure that we get MPIDR values from QEMU. No MPIDR == panic() in case which should not happen. Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Change-Id: Idb5fe7d958f0bcecd3d66a643743f478538f4a8b
This commit is contained in:
parent
e12b765e28
commit
4fc54c99d0
1 changed files with 3 additions and 0 deletions
|
@ -103,6 +103,9 @@ void read_cpuinfo_from_dt(void *dtb)
|
|||
while (node > 0) {
|
||||
if (fdt_getprop(dtb, node, "reg", NULL)) {
|
||||
fdt_get_reg_props_by_index(dtb, node, 0, &mpidr, NULL);
|
||||
} else {
|
||||
ERROR("Incomplete information for cpu %d in DeviceTree.\n", cpu);
|
||||
panic();
|
||||
}
|
||||
|
||||
if (fdt_getprop(dtb, node, "numa-node-id", NULL)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue