mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
loader: Allow a custom AddressSpace when loading ROMs
When loading ROMs allow the caller to specify an AddressSpace to use for the load. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Message-id: 85f86b94ea94879e7ce8b12e85ac8de26658f7eb.1474331683.git.alistair.francis@xilinx.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
d6ac342a48
commit
3e76099aac
3 changed files with 41 additions and 14 deletions
|
@ -405,7 +405,7 @@ static int glue(load_elf, SZ)(const char *name, int fd,
|
|||
snprintf(label, sizeof(label), "phdr #%d: %s", i, name);
|
||||
|
||||
/* rom_add_elf_program() seize the ownership of 'data' */
|
||||
rom_add_elf_program(label, data, file_size, mem_size, addr);
|
||||
rom_add_elf_program(label, data, file_size, mem_size, addr, NULL);
|
||||
|
||||
total_size += mem_size;
|
||||
if (addr < low)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue