mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/loongarch: move memory map to boot.c
Ensure that it can be used even if virt.c is not included in the build, as is the case for --without-default-devices. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Acked-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20240507145135.270803-1-pbonzini@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
ed95bdd1e5
commit
72674db080
5 changed files with 14 additions and 14 deletions
|
@ -104,6 +104,16 @@ struct loongarch_boot_info {
|
|||
uint64_t a0, a1, a2;
|
||||
};
|
||||
|
||||
extern struct memmap_entry *memmap_table;
|
||||
extern unsigned memmap_entries;
|
||||
|
||||
struct memmap_entry {
|
||||
uint64_t address;
|
||||
uint64_t length;
|
||||
uint32_t type;
|
||||
uint32_t reserved;
|
||||
};
|
||||
|
||||
void loongarch_load_kernel(MachineState *ms, struct loongarch_boot_info *info);
|
||||
|
||||
#endif /* HW_LOONGARCH_BOOT_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue