Re: [PATCH v2] hw/loongarch/boot: Support Linux raw boot image

2024-12-24 Thread Richard Henderson
On 12/24/24 07:06, Jiaxun Yang wrote: +static int64_t load_loongarch_linux_image(const char *filename, + uint64_t *kernel_entry, + uint64_t *kernel_low, + uint64_t *kernel_hi

[PATCH v2] hw/loongarch/boot: Support Linux raw boot image

2024-12-24 Thread Jiaxun Yang
Support booting such image by parsing header as per Linux's specification [1]. This enabled booting vmlinux.efi/vmlinuz.efi shipped by distros without supplying BIOS. [1]: https://docs.kernel.org/arch/loongarch/booting.html Signed-off-by: Jiaxun Yang --- Changes in v2: - Use extract API for get