diff options
Diffstat (limited to 'include/hw/loader.h')
-rw-r--r-- | include/hw/loader.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/hw/loader.h b/include/hw/loader.h index 5485906095..0ba780852c 100644 --- a/include/hw/loader.h +++ b/include/hw/loader.h @@ -56,6 +56,9 @@ const char *load_elf_strerror(int error); * @elf_machine: Expected ELF machine type * @clear_lsb: Set to mask off LSB of addresses (Some architectures use * this for non-address data) + * @data_swab: Set to order of byte swapping for data. 0 for no swap, 1 + * for swapping bytes within halfwords, 2 for bytes within + * words and 3 for within doublewords. * * Load an ELF file's contents to the emulated system's address space. * Clients may optionally specify a callback to perform address @@ -70,7 +73,7 @@ const char *load_elf_strerror(int error); int load_elf(const char *filename, uint64_t (*translate_fn)(void *, uint64_t), void *translate_opaque, uint64_t *pentry, uint64_t *lowaddr, uint64_t *highaddr, int big_endian, int elf_machine, - int clear_lsb); + int clear_lsb, int data_swab); /** load_elf_hdr: * @filename: Path of ELF file |