hw/riscv: set machine->fdt in sifive_u_machine_init()
This will enable support for 'dumpdtb' QMP/HMP command for the sifive_u machine. Cc: Alistair Francis <Alistair.Francis@wdc.com> Cc: Bin Meng <bin.meng@windriver.com> Cc: Palmer Dabbelt <palmer@dabbelt.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Message-Id: <20220926173855.1159396-15-danielhb413@gmail.com>
This commit is contained in:
parent
d890f2fa9f
commit
cf79892f4b
@ -634,6 +634,9 @@ static void sifive_u_machine_init(MachineState *machine)
|
||||
start_addr_hi32 = (uint64_t)start_addr >> 32;
|
||||
}
|
||||
|
||||
/* Set machine->fdt for 'dumpdtb' QMP/HMP command */
|
||||
machine->fdt = s->fdt;
|
||||
|
||||
/* reset vector */
|
||||
uint32_t reset_vec[12] = {
|
||||
s->msel, /* MSEL pin state */
|
||||
|
Loading…
x
Reference in New Issue
Block a user