hw/loongarch: Fix loongarch fdt addr confict
commit46b21de238c643ea098f2dcffe493abd135f7d89
authorSong Gao <gaosong@loongson.cn>
Wed, 9 Nov 2022 02:04:49 +0000 (9 10:04 +0800)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 12 Nov 2022 01:05:52 +0000 (12 11:05 +1000)
tree2935218a6f0f7b1049c3d0c7b694145c117d0073
parent2ccad61746ca7de5dd3e25146062264387e43bd4
hw/loongarch: Fix loongarch fdt addr confict

Fix LoongArch check-tcg error:
   TEST    hello on loongarch64
qemu-system-loongarch64: Some ROM regions are overlapping
These ROM regions might have been loaded by direct user request or by default.
They could be BIOS/firmware images, a guest kernel, initrd or some other file loaded into guest memory.
Check whether you intended to load all this guest code, and whether it has been built to load to the correct addresses.

The following two regions overlap (in the memory address space):
   hello ELF program header segment 0 (addresses 0x0000000000200000 - 0x0000000000242000)
   fdt (addresses 0x0000000000200000 - 0x0000000000300000)
make[1]: *** [Makefile:177: run-hello] Error 1

Fixes: 021836936ef ("hw/loongarch: Load FDT table into dram memory space")
Reported-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221109020449.978064-1-gaosong@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
hw/loongarch/virt.c