summaryrefslogtreecommitdiffstats
path: root/hw/mips/malta.c
diff options
context:
space:
mode:
authorPaolo Bonzini2020-10-28 11:20:52 +0100
committerPaolo Bonzini2020-12-10 18:15:08 +0100
commit74d6bf85257ee0344696e35de54fa24757a50b0f (patch)
tree26cb8013d643a6e1ae1a5cdfc004689b09ac32d4 /hw/mips/malta.c
parentmicroblaze: do not use ram_size global (diff)
downloadqemu-74d6bf85257ee0344696e35de54fa24757a50b0f.tar.gz
qemu-74d6bf85257ee0344696e35de54fa24757a50b0f.tar.xz
qemu-74d6bf85257ee0344696e35de54fa24757a50b0f.zip
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>
Diffstat (limited to 'hw/mips/malta.c')
-rw-r--r--hw/mips/malta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/mips/malta.c b/hw/mips/malta.c
index ef369945d1..467b21849e 100644
--- a/hw/mips/malta.c
+++ b/hw/mips/malta.c
@@ -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'",