loader: Allow ELF loader to auto-detect the ELF arch
commit8cf6e9daca19e08216cf09e523d1dcdf3cfdaec7
authorAlistair Francis <alistair.francis@xilinx.com>
Thu, 22 Sep 2016 17:13:07 +0000 (22 18:13 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 22 Sep 2016 17:13:07 +0000 (22 18:13 +0100)
tree5353ce4f931eb3212601a125e534e912173e2182
parent1372fc0b87b80634313ad332279f9c7ca0583862
loader: Allow ELF loader to auto-detect the ELF arch

If the caller didn't specify an architecture for the ELF machine
the load_elf() function will auto detect it based on the ELF file.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: f2d70b47fcad31445f947f8817a0e146d80a046b.1474331683.git.alistair.francis@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
include/hw/elf_ops.h
include/hw/loader.h