hw/loongarch: Add fdt support
commitfda3f15b0079d4bba76791502a7e00b8b747f509
authorXiaojuan Yang <yangxiaojuan@loongson.cn>
Tue, 12 Jul 2022 08:32:06 +0000 (12 16:32 +0800)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 19 Jul 2022 17:25:10 +0000 (19 22:55 +0530)
tree01e4d9a080267fb0a8a8766e421a8e767e5fc9c8
parent735143f10d3e74523f25444c57d61d51ffd57167
hw/loongarch: Add fdt support

Add LoongArch flatted device tree, adding cpu device node, firmware cfg node,
pcie node into it, and create fdt rom memory region. Now fdt info is not
full since only uefi bios uses fdt, linux kernel does not use fdt.
Loongarch Linux kernel uses acpi table which is full in qemu virt
machine.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Message-Id: <20220712083206.4187715-7-yangxiaojuan@loongson.cn>
[rth: Set TARGET_NEED_FDT, add fdt to meson.build]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
configs/targets/loongarch64-softmmu.mak
hw/loongarch/loongson3.c
hw/loongarch/meson.build
include/hw/loongarch/virt.h
target/loongarch/cpu.c
target/loongarch/cpu.h