mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
hw/loongarch: Move boot functions to boot.c
Move some boot functions to boot.c and struct loongarch_boot_info into struct LoongArchMachineState. Signed-off-by: Song Gao <gaosong@loongson.cn> Reviewed-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20240426091551.2397867-2-gaosong@loongson.cn>
This commit is contained in:
parent
fd87be1dad
commit
d771ca1c10
5 changed files with 160 additions and 113 deletions
|
@ -13,6 +13,7 @@
|
|||
#include "qemu/queue.h"
|
||||
#include "hw/intc/loongarch_ipi.h"
|
||||
#include "hw/block/flash.h"
|
||||
#include "hw/loongarch/boot.h"
|
||||
|
||||
#define LOONGARCH_MAX_CPUS 256
|
||||
|
||||
|
@ -55,6 +56,7 @@ struct LoongArchMachineState {
|
|||
MemoryRegion system_iocsr;
|
||||
MemoryRegion iocsr_mem;
|
||||
AddressSpace as_iocsr;
|
||||
struct loongarch_boot_info bootinfo;
|
||||
};
|
||||
|
||||
#define TYPE_LOONGARCH_MACHINE MACHINE_TYPE_NAME("virt")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue