mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
mips: do not use ram_size global
Use the machine properties or loader parameters instead. Cc: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
89ee4a098c
commit
74d6bf8525
2 changed files with 3 additions and 3 deletions
|
@ -1087,7 +1087,7 @@ static int64_t load_kernel(void)
|
|||
}
|
||||
initrd_size = load_image_targphys(loaderparams.initrd_filename,
|
||||
initrd_offset,
|
||||
ram_size - initrd_offset);
|
||||
loaderparams.ram_size - initrd_offset);
|
||||
}
|
||||
if (initrd_size == (target_ulong) -1) {
|
||||
error_report("could not load initial ram disk '%s'",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue