loader: Add load_image_size() to replace load_image()
commitea87616d6c44d998affef3d3b9fdfc49d14b8150
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 21 Jul 2014 03:02:03 +0000 (21 13:02 +1000)
committerAlexander Graf <agraf@suse.de>
Mon, 8 Sep 2014 10:50:48 +0000 (8 12:50 +0200)
tree7a44ca5bbe846c46c9709699492d4fd9145ad7e0
parentc3b4f589d86ae4a6b9f6c1e0587998bc525833da
loader: Add load_image_size() to replace load_image()

A subsequent patch to ppc/spapr needs to load the RTAS blob into
qemu memory rather than target memory (so it can later be copied
into the right spot at machine reset time).

I would use load_image() but it is marked deprecated because it
doesn't take a buffer size as argument, so let's add load_image_size()
that does.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[aik: fixed errors from checkpatch.pl]
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/core/loader.c
include/hw/loader.h