riscv-qemu icon indicating copy to clipboard operation
riscv-qemu copied to clipboard

Support loading binary files in addition to ELF files

Open lukasauer opened this issue 6 years ago • 2 comments

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.

lukasauer avatar Oct 19 '18 21:10 lukasauer

Ping? The Travis CI failures seem to be unrelated to my patch.

lukasauer avatar Oct 30 '18 13:10 lukasauer

I have updated my patch with your comments. Please let me know if it looks good to you now.

lukasauer avatar Dec 28 '18 17:12 lukasauer