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:
Marcin Juszkiewicz 2024-01-15 11:09:50 +01:00
parent e12b765e28
commit 4fc54c99d0

View file

@ -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)) {