qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

roms: opensbi: Add 32-bit firmware image for sifive_u machine

Although the real world SiFive HiFive Unleashed board is a 64-bit
hardware configuration, with QEMU it is possible to test 32-bit
configuration with the same hardware features.

This updates the roms Makefile to add the build rules for creating
the 32-bit OpenSBI firmware image for sifive_u machine. A pre-built
OpenSBI v0.6 image has been added as the default bios for 32-bit
sifive_u machine.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>

authored by

Bin Meng and committed by
Palmer Dabbelt
a6fcc80b bfd05e81

+8 -1
+1 -1
Makefile
··· 848 848 qemu_vga.ndrv \ 849 849 edk2-licenses.txt \ 850 850 hppa-firmware.img \ 851 - opensbi-riscv32-virt-fw_jump.bin \ 851 + opensbi-riscv32-sifive_u-fw_jump.bin opensbi-riscv32-virt-fw_jump.bin \ 852 852 opensbi-riscv64-sifive_u-fw_jump.bin opensbi-riscv64-virt-fw_jump.bin 853 853 854 854
pc-bios/opensbi-riscv32-sifive_u-fw_jump.bin

This is a binary file and will not be displayed.

+7
roms/Makefile
··· 66 66 @echo " efi -- update UEFI (edk2) platform firmware" 67 67 @echo " opensbi32-virt -- update OpenSBI for 32-bit virt machine" 68 68 @echo " opensbi64-virt -- update OpenSBI for 64-bit virt machine" 69 + @echo " opensbi32-sifive_u -- update OpenSBI for 32-bit sifive_u machine" 69 70 @echo " opensbi64-sifive_u -- update OpenSBI for 64-bit sifive_u machine" 70 71 @echo " bios-microvm -- update bios-microvm.bin (qboot)" 71 72 @echo " clean -- delete the files generated by the previous" \ ··· 180 181 CROSS_COMPILE=$(riscv64_cross_prefix) \ 181 182 PLATFORM="qemu/virt" 182 183 cp opensbi/build/platform/qemu/virt/firmware/fw_jump.bin ../pc-bios/opensbi-riscv64-virt-fw_jump.bin 184 + 185 + opensbi32-sifive_u: 186 + $(MAKE) -C opensbi \ 187 + CROSS_COMPILE=$(riscv32_cross_prefix) \ 188 + PLATFORM="sifive/fu540" 189 + cp opensbi/build/platform/sifive/fu540/firmware/fw_jump.bin ../pc-bios/opensbi-riscv32-sifive_u-fw_jump.bin 183 190 184 191 opensbi64-sifive_u: 185 192 $(MAKE) -C opensbi \