xemu/hw/mips
Li Zhijian f3839fda57 change get_image_size return type to int64_t
Previously, if the size of initrd >=2G, qemu exits with error:
root@haswell-OptiPlex-9020:/home/lizj# /home/lizhijian/lkp/qemu-colo/x86_64-softmmu/qemu-system-x86_64 -kernel ./vmlinuz-4.16.0-rc4 -initrd large.cgz -nographic
qemu: error reading initrd large.cgz: No such file or directory
root@haswell-OptiPlex-9020:/home/lizj# du -sh large.cgz
2.5G	large.cgz

this patch changes the caller side that use this function to calculate
size of initrd file as well.

v2: update error message and int64_t printing format

Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Message-Id: <1536833233-14121-1-git-send-email-lizhijian@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-10-02 19:08:49 +02:00
..
addr.c mips: Add KVM T&E segment support for TCG 2017-08-02 22:18:06 +01:00
boston.c hw: Directly use "qemu/units.h" instead of "qemu/cutils.h" 2018-07-02 15:41:12 +02:00
cps.c mips: malta/boston: replace cpu_model with cpu_type 2017-10-27 16:04:28 +02:00
gt64xxx_pci.c Replace all occurances of __FUNCTION__ with __func__ 2018-01-22 09:46:18 +01:00
Makefile.objs mips: move hw/mips/cputimer.c to target/mips/ 2017-09-21 13:24:34 +01:00
mips_fulong2e.c change get_image_size return type to int64_t 2018-10-02 19:08:49 +02:00
mips_int.c mips: use MIPSCPU instead of CPUMIPSState 2016-05-19 16:42:27 +02:00
mips_jazz.c hw/mips/jazz: create ESP device directly via qdev 2018-06-28 19:05:35 +02:00
mips_malta.c change get_image_size return type to int64_t 2018-10-02 19:08:49 +02:00
mips_mipssim.c change get_image_size return type to int64_t 2018-10-02 19:08:49 +02:00
mips_r4k.c change get_image_size return type to int64_t 2018-10-02 19:08:49 +02:00