]> git.proxmox.com Git - mirror_qemu.git/commit - hw/arm/boot.c
hw/arm/virt: Silence dtc /memory warning
authorEric Auger <eric.auger@redhat.com>
Fri, 29 Jun 2018 14:11:01 +0000 (15:11 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 Jun 2018 14:11:01 +0000 (15:11 +0100)
commite2eb3d29d711d510a51b5483fe818650325a7d3a
tree8f52b949c68e9002fafc49ace8013406437f8a93
parentbb2a33486fa33fc9e8bc557c54a485ed373845c9
hw/arm/virt: Silence dtc /memory warning

When running dtc on the guest /proc/device-tree we get the
following warning: Warning (unit_address_vs_reg): Node /memory
has a reg or ranges property, but no unit name".

Let's fix that by adding the unit address to the node name. We also
don't create the /memory node anymore in create_fdt(). We directly
create it in load_dtb. /chosen still needs to be created in create_fdt
as the uart needs it. In case the user provided his own dtb, we nop
all memory nodes found in root and create new one(s).

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Message-id: 1530044492-24921-4-git-send-email-eric.auger@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/boot.c
hw/arm/virt.c