On Thu, Jul 2, 2020 at 2:39 AM Atish Patra <atish.pa...@wdc.com> wrote: > > Currently, the fdt is copied to the ROM after the reset vector. The firmware > has to copy it to DRAM. Instead of this, directly copy the device tree to a > pre-computed dram address. The device tree load address should be as far as > possible from kernel and initrd images. That's why it is kept at the end of > the DRAM or 4GB whichever is lesser. > > Signed-off-by: Atish Patra <atish.pa...@wdc.com> > Reviewed-by: Alistair Francis <alistair.fran...@wdc.com> > --- > hw/riscv/boot.c | 53 +++++++++++++++++++++++++++++------------ > hw/riscv/sifive_u.c | 28 ++++++++++------------ > hw/riscv/spike.c | 7 +++++- > hw/riscv/virt.c | 7 +++++- > include/hw/riscv/boot.h | 4 +++- > 5 files changed, 66 insertions(+), 33 deletions(-) >
Reviewed-by: Bin Meng <bin.m...@windriver.com> Tested-by: Bin Meng <bin.m...@windriver.com>