riscv-qemu
riscv-qemu copied to clipboard
Support loading binary files in addition to ELF files
The kernel and bootloader are not always available as ELF files, or directly executable. For example, the kernel might be included together with a device tree inside of an image. Support this use case by adding support for loading binary files in addition to ELF files.
With this patch, the files specified with the -bios and -kernel parameters are attempted to be loaded as ELF files first. If this fails, they are loaded directly to memory instead.
Ping? The Travis CI failures seem to be unrelated to my patch.
I have updated my patch with your comments. Please let me know if it looks good to you now.