aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-27 08:23:37 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-31 19:36:44 +0100
commit29c7bd8eaf0384ec0752779ca71fdbb1d6f5d961 (patch)
tree034efcb3998516881493638e8e666ff157dea1b1
parenta40b5f32867294b7c855d2e4b98a4c2d32b3be28 (diff)
downloadqemu-29c7bd8eaf0384ec0752779ca71fdbb1d6f5d961.zip
qemu-29c7bd8eaf0384ec0752779ca71fdbb1d6f5d961.tar.gz
qemu-29c7bd8eaf0384ec0752779ca71fdbb1d6f5d961.tar.bz2
hw/avr/boot: Replace load_elf_ram_sym() -> load_elf_as()
load_elf_ram_sym() with load_rom=true, sym_cb=NULL is equivalent to load_elf_as(). Replace by the latter to simplify. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250127113824.50177-2-philmd@linaro.org>
-rw-r--r--hw/avr/boot.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/hw/avr/boot.c b/hw/avr/boot.c
index 617f3a1..6a91dcd 100644
--- a/hw/avr/boot.c
+++ b/hw/avr/boot.c
@@ -71,11 +71,9 @@ bool avr_load_firmware(AVRCPU *cpu, MachineState *ms,
return false;
}
- bytes_loaded = load_elf_ram_sym(filename,
- NULL, NULL, NULL,
- &entry, NULL, NULL,
- &e_flags, 0, EM_AVR, 0, 0,
- NULL, true, NULL);
+ bytes_loaded = load_elf_as(filename, NULL, NULL, NULL,
+ &entry, NULL, NULL,
+ &e_flags, 0, EM_AVR, 0, 0, NULL);
if (bytes_loaded >= 0) {
/* If ELF file is provided, determine CPU type reading ELF e_flags. */
const char *elf_cpu = avr_elf_e_flags_to_cpu_type(e_flags);