OSDN Git Service

hw/arm/virt: Fix incorrect non-secure flash dtb node name
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 13 May 2022 13:13:15 +0000 (14:13 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 19 May 2022 15:19:03 +0000 (16:19 +0100)
commite8ca920f3d1cedf7f2ebb41d13cd4d5946d3d882
tree952fdbb4a0b4c005151d4f77f19bee26b5eacdc3
parent24526bb92f69a323a9339dd94e823ad1d680f483
hw/arm/virt: Fix incorrect non-secure flash dtb node name

In the virt board with secure=on we put two nodes in the dtb
for flash devices: one for the secure-only flash, and one
for the non-secure flash. We get the reg properties for these
correct, but in the DT node name, which by convention includes
the base address of devices, we used the wrong address. Fix it.

Spotted by dtc, which will complain
Warning (unique_unit_address): /flash@0: duplicate unit-address (also used in node /secflash@0)
if you dump the dtb from QEMU with -machine dumpdtb=file.dtb
and then decompile it with dtc.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220513131316.4081539-2-peter.maydell@linaro.org
hw/arm/virt.c