summaryrefslogtreecommitdiffstats
path: root/hw/intc/apic_common.c
diff options
context:
space:
mode:
authorSunil V L2022-10-04 11:23:51 +0200
committerAlistair Francis2022-10-14 06:29:50 +0200
commita5b0249dfef6d39d345ed7c9620a04bdb1c2ffb0 (patch)
tree966c30581b5023a7f83f48d78bbf73ba0350e49d /hw/intc/apic_common.c
parenthw/riscv: virt: Move create_fw_cfg() prior to loading kernel (diff)
downloadqemu-a5b0249dfef6d39d345ed7c9620a04bdb1c2ffb0.tar.gz
qemu-a5b0249dfef6d39d345ed7c9620a04bdb1c2ffb0.tar.xz
qemu-a5b0249dfef6d39d345ed7c9620a04bdb1c2ffb0.zip
hw/riscv: virt: Enable booting S-mode firmware from pflash
To boot S-mode firmware payload like EDK2 from persistent flash storage, qemu needs to pass the flash address as the next_addr in fw_dynamic_info to the opensbi. When both -kernel and -pflash options are provided in command line, the kernel (and initrd if -initrd) will be copied to fw_cfg table. The S-mode FW will load the kernel/initrd from fw_cfg table. If only pflash is given but not -kernel, then it is the job of of the S-mode firmware to locate and load the kernel. In either case, update the kernel_entry with the flash address so that the opensbi can jump to the entry point of the S-mode firmware. 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-4-sunilvl@ventanamicro.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/intc/apic_common.c')
0 files changed, 0 insertions, 0 deletions