hw/riscv: virt: Move create_fw_cfg() prior to loading kernel
commit90e26984eede1f4303572a39ee328f4c23b276a0
authorSunil V L <sunilvl@ventanamicro.com>
Tue, 4 Oct 2022 09:23:50 +0000 (4 14:53 +0530)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 14 Oct 2022 04:29:50 +0000 (14 14:29 +1000)
tree93aef5616b4896b177c4c9810f0f88333341796f
parent785a7383dd4832cc772a2c5483bd6fa40ee51302
hw/riscv: virt: Move create_fw_cfg() prior to loading kernel

To enable both -kernel and -pflash options, the fw_cfg needs to be
created prior to loading the kernel.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221004092351.18209-3-sunilvl@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/virt.c