]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/loongarch/boot: Support Linux raw boot image
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Wed, 8 Jan 2025 02:01:07 +0000 (10:01 +0800)
committerBibo Mao <maobibo@loongson.cn>
Thu, 9 Jan 2025 06:12:53 +0000 (14:12 +0800)
commitcc4ba2c2d25229ad39bf04a620f7d3b071b2af1d
tree9a7053534a0500880e21b5caa4390b343da67c06
parente3526d0fd73949fd6eafd97711351a7934b496a3
hw/loongarch/boot: Support Linux raw boot image

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 <jiaxun.yang@flygoat.com>
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
hw/loongarch/boot.c