aboutsummaryrefslogtreecommitdiff
path: root/hw/core
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-27 08:28:02 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-31 19:36:44 +0100
commitff12b602fc9077197839f068b5c21beb82c71964 (patch)
treef082d67a549e90db0d8e2047d36b0af4ff50e73a /hw/core
parent29c7bd8eaf0384ec0752779ca71fdbb1d6f5d961 (diff)
downloadqemu-ff12b602fc9077197839f068b5c21beb82c71964.zip
qemu-ff12b602fc9077197839f068b5c21beb82c71964.tar.gz
qemu-ff12b602fc9077197839f068b5c21beb82c71964.tar.bz2
hw/loader: Remove unused load_elf_ram()
Last use of load_elf_ram() was removed in commit 188e255bf8e ("hw/s390x: Remove the possibility to load the s390-netboot.img binary"), remove it. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20250127113824.50177-3-philmd@linaro.org>
Diffstat (limited to 'hw/core')
-rw-r--r--hw/core/loader.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/hw/core/loader.c b/hw/core/loader.c
index 4dfdb02..ead10fb 100644
--- a/hw/core/loader.c
+++ b/hw/core/loader.c
@@ -426,25 +426,11 @@ ssize_t load_elf_as(const char *filename,
int elf_machine, int clear_lsb, int data_swab,
AddressSpace *as)
{
- return load_elf_ram(filename, elf_note_fn, translate_fn, translate_opaque,
- pentry, lowaddr, highaddr, pflags, big_endian,
- elf_machine, clear_lsb, data_swab, as, true);
-}
-
-/* return < 0 if error, otherwise the number of bytes loaded in memory */
-ssize_t load_elf_ram(const char *filename,
- uint64_t (*elf_note_fn)(void *, void *, bool),
- uint64_t (*translate_fn)(void *, uint64_t),
- void *translate_opaque, uint64_t *pentry,
- uint64_t *lowaddr, uint64_t *highaddr, uint32_t *pflags,
- int big_endian, int elf_machine, int clear_lsb,
- int data_swab, AddressSpace *as, bool load_rom)
-{
return load_elf_ram_sym(filename, elf_note_fn,
translate_fn, translate_opaque,
pentry, lowaddr, highaddr, pflags, big_endian,
elf_machine, clear_lsb, data_swab, as,
- load_rom, NULL);
+ true, NULL);
}
/* return < 0 if error, otherwise the number of bytes loaded in memory */