diff options
author | Paolo Bonzini | 2020-10-28 11:20:01 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-12-10 18:15:08 +0100 |
commit | 89ee4a098c130cea0aca50090388cdca41f89dd9 (patch) | |
tree | d71fe492c3b649210583b3b16b10d750e446b49f /hw/microblaze | |
parent | m68k: do not use ram_size global (diff) | |
download | qemu-89ee4a098c130cea0aca50090388cdca41f89dd9.tar.gz qemu-89ee4a098c130cea0aca50090388cdca41f89dd9.tar.xz qemu-89ee4a098c130cea0aca50090388cdca41f89dd9.zip |
microblaze: do not use ram_size global
Use the equivalent argument to the function instead.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/microblaze')
-rw-r--r-- | hw/microblaze/boot.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/microblaze/boot.c b/hw/microblaze/boot.c index 8ad3c27f2c..e1f56f83f9 100644 --- a/hw/microblaze/boot.c +++ b/hw/microblaze/boot.c @@ -170,7 +170,7 @@ void microblaze_load_kernel(MicroBlazeCPU *cpu, hwaddr ddr_base, /* Not an ELF image nor an u-boot image, try a RAW image. */ if (kernel_size < 0) { kernel_size = load_image_targphys(kernel_filename, ddr_base, - ram_size); + ramsize); boot_info.bootstrap_pc = ddr_base; high = (ddr_base + kernel_size + 3) & ~3; } @@ -185,11 +185,11 @@ void microblaze_load_kernel(MicroBlazeCPU *cpu, hwaddr ddr_base, initrd_size = load_ramdisk(initrd_filename, boot_info.initrd_start, - ram_size - initrd_offset); + ramsize - initrd_offset); if (initrd_size < 0) { initrd_size = load_image_targphys(initrd_filename, boot_info.initrd_start, - ram_size - initrd_offset); + ramsize - initrd_offset); } if (initrd_size < 0) { error_report("could not load initrd '%s'", @@ -206,7 +206,7 @@ void microblaze_load_kernel(MicroBlazeCPU *cpu, hwaddr ddr_base, } /* Provide a device-tree. */ boot_info.fdt = boot_info.cmdline + 4096; - microblaze_load_dtb(boot_info.fdt, ram_size, + microblaze_load_dtb(boot_info.fdt, ramsize, boot_info.initrd_start, boot_info.initrd_end, kernel_cmdline, |