From: Paolo Bonzini Date: Wed, 28 Oct 2020 10:21:08 +0000 (-0400) Subject: moxie: do not use ram_size global X-Git-Tag: v6.0.0-rc0~189^2~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb09df927274c7a873557588a1a23398af47fbb6;p=thirdparty%2Fqemu.git moxie: do not use ram_size global Use the loader parameters instead. Cc: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- diff --git a/hw/moxie/moxiesim.c b/hw/moxie/moxiesim.c index d07d504c0d7..f7b57fcae19 100644 --- a/hw/moxie/moxiesim.c +++ b/hw/moxie/moxiesim.c @@ -82,7 +82,7 @@ static void load_kernel(MoxieCPU *cpu, LoaderParams *loader_params) } initrd_size = load_image_targphys(loader_params->initrd_filename, initrd_offset, - ram_size); + loader_params->ram_size); } if (initrd_size == (target_ulong)-1) { error_report("could not load initial ram disk '%s'",