Peter Maydell 36bde0911f hw/pci/pci.c: Don't use load_image()
The load_image() function is deprecated, as it does not let the
caller specify how large the buffer to read the file into is.
Instead use load_image_size().

While we are converting this code, add an error-check
for read failure.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20181130151712.2312-5-peter.maydell@linaro.org
2018-12-14 13:30:51 +00:00
..
2018-11-27 15:35:15 +01:00
2018-10-24 06:44:59 -03:00
2018-10-24 06:44:59 -03:00
2018-11-27 15:35:15 +01:00
2018-12-14 13:30:51 +00:00
2018-11-08 14:42:37 +00:00
2018-08-18 18:01:34 +03:00
2018-11-27 15:35:15 +01:00
2018-12-03 19:57:59 +00:00
2018-12-11 22:26:44 +00:00
2018-10-26 17:17:32 +02:00