OSDN Git Service

hw/loongarch: Add linux kernel booting support
authorXiaojuan Yang <yangxiaojuan@loongson.cn>
Tue, 12 Jul 2022 08:32:03 +0000 (16:32 +0800)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 19 Jul 2022 17:25:10 +0000 (22:55 +0530)
commitfb1cd3a2925ee3479b1a82adb2df967952a94300
tree5340f828fe2a0eccfc8077e91ebd7f8b16f26d65
parent98afb0d4e95322d728375a1171a5f77a9eeb4d68
hw/loongarch: Add linux kernel booting support

There are two situations to start system by kernel file. If exists bios
option, system will boot from loaded bios file, else system will boot
from hardcoded auxcode, and jump to kernel elf entry.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Message-Id: <20220712083206.4187715-4-yangxiaojuan@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
hw/loongarch/loongson3.c